lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Not R5RS, but GUILE


From: Bertalan Fodor (LilyPondTool)
Subject: Re: Not R5RS, but GUILE
Date: Thu, 18 Dec 2008 15:53:55 +0100
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

Unfortunately +1 is neither an R5RS identifier.

identifier: (letter|special_initial) subsequent* | + | - | ...
special_initial: ! | $ | % | & | * | / | : | < | = | > | ? | ^ | _ | ~
"In general, a sequence of letters, digits, and “extended alphabetic characters” is an identifier when it begins with a character that cannot begin a representation of a number object. In addition, +, -, and ... are identifiers"



Han-Wen Nienhuys wrote:
Can you also voice this concern on the guile devel list?

I think the reason the function exists is that is slightly more
efficient.  Feel free to define a +1 function and change lily to use
it.

On Thu, Dec 18, 2008 at 11:21 AM, Bertalan Fodor (LilyPondTool)
<address@hidden> wrote:
  
Hi,

I found that many places you use the procedure 1+. Besides that how
ridiculous I think is to have a function that spares a "space" (1+ instead
of (+ 1, the real concern is that it doesn't conform to R5RS. R5RS doesn't
allow identifiers to start with a number.
I know that GUILE allows it (I wonder why).
But my Scheme parser (Julie) is stricter then Guile in this sense, so it
won't be able to parse LilyPond-supported SCM files. I want to parse them.
Could you change the (1+ calls to (+ 1?

It's just a question about your opinion.

Bert



_______________________________________________
lilypond-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-devel

    



  


reply via email to

[Prev in Thread] Current Thread [Next in Thread]