But I don't understand -- Maple is free form too, yet I can write the 
equivalent of
module Act = class Base = fun clone () = stuff end fun end class end module;
and it parses just fine.  Ok, so Maple is old-style and this would be
Act := module() Base := class() clone := proc() stuff end fun end class 
end module;
but it still only needs the one ;

Jacques

Erick Tryzelaar wrote:
> skaller wrote:
>   
>>> What maple allows you do to would translate (in the above example) to:
>>>
>>> module Act
>>>   class Base
>>>     def clone
>>>       stuff
>>>     end def
>>>   end class
>>> end module
>>>
>>> where each of the keywords after end:
>>> 1) are optional
>>> 2) must match!
>>>
>>> This has been liked by most users.
>>>       
>> But won't work in Felix, because it is free form and
>> ignores indents. Instead we use ';' as a terminator,
>> in the style of C and Modula.
>>
>> The thing is, if you use indents .. you don't
>> need any terminators: this works reasonably well
>> even in long Python code.
>>
>>     
>
> Err, I meant to include ";"s, my mistake :) For felix syntax, I meant 
> something like:
>
> module Act =
>   class Base =
>     fun clone () =
>       stuff
>     end fun;
>   end class;
> end module;
>
>
>
>
>
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/felix-language
>   

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to