[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: iterating over (nonascii) chars
From: |
Rustom Mody |
Subject: |
Re: iterating over (nonascii) chars |
Date: |
Mon, 14 Oct 2013 20:29:53 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Tuesday, October 15, 2013 2:18:55 AM UTC+5:30, Michael Heerdegen wrote:
> Rustom Mody writes:
>
>
> > In perl-mode.el I find things like
> >
> > (modify-syntax-entry ?* "." st)
> > (modify-syntax-entry ?+ "." st)
> > (modify-syntax-entry ?- "." st)
> > (modify-syntax-entry ?/ "." st)
> > (modify-syntax-entry ?< "." st)
> > (modify-syntax-entry ?= "." st)
> > (modify-syntax-entry ?> "." st)
> >
> > Any reason why its not written as follows?
> >
> > (dolist (v (string-to-list "*+-/<=>"))
> > (modify-syntax-entry v "." st))
>
> Probably, no. Many people prefer the first version wrt readability.
> While galloping through the code the first version is easier to parse
> for your eyes, while the second version is shorter, of course. Use
> whatever suits your style of thinking and coding.
Hell I thought there is some superman kryptonite answer involving
text-properties/unicode/uni-vs-multibyte or some such arcanity that I cant wrap
my brain round :-)
I am still not so sure...