Martin Percossi wrote:
>> Optional indentation has just been implemented, but it requires
>> an introduction:
>>
>>      whilst x do $$
>>              x = 1
>>              y = 2
>>
>> This integrates fairly seamlessly with free form, without
>> any special knowledge of the syntax. I'm not sure I
>> like the $$ symbol though .. it's a bit ugly.
>>  
>>
> Cool. I agree about the $$ symbol (speaking of aesthetics: was "whilst" 
> rather than "while" really necessary? -- see 
> http://en.wikipedia.org/wiki/Whilst, in particular the part about style 
> guides ;-). F#'s approach, though not inlinable, is to have a directive, 
> if memory serves well:
> #syntax light
> which I thought was pretty sensible. But again, you can't inline. Maybe 
> have both?

We talked about this when skaller implemented "$$". I believe his reason 
against "#syntax light" was that it was a global declaration, and he'd 
prefer not to have them. I think it may also complicate the lexer. One 
alternative idea (that I never mentioned) I did have to replace the 
current $$ form would be to do:

#syntax light
  whilst x do
    x = 1
    y = 2
  done
#endsyntax

Personally though, I haven't yet been convinced that this *shouldn't* be 
a global declaration. I think that swapping between the space-sensitive 
and space-insensitive in a file could get confusing.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to