skaller wrote:

>>Another cool thing: the use of backquotes to get infix notation. 5 `mod` 
>>2 is just very nice in my opinion. 
>>    
>>
>
>Actually it sucks because backquotes can't be nested without
>gratuitous brackets
>  
>
You are of course completely right. Come to think of it, I remember a 
discussion about this on haskell list. Must be getting senile in my old 
age ;-)

>Note also, Felix uses tuples rather than curried form,
>they're more efficient (in Felix) because they're easier to
>analyse than closure chains.
>  
>
More efficient? Closures should be very quick. I've certainly never 
heard of them having an impact on OCaml, which, among FP languages, 
felix is probably closest to. Of course, I guess the thing is you can 
translate functions whose arguments are tuples directly into C function, 
whereas curried functions would get translated to functions that accept 
an environment so that the C compiler couldn't inline those args, 
correct? Have you actually done benchmarks on the overhead? If it's 
small, use curried functions! Because curried functions are just so, so 
much better IMHO. But alas I suspect you're right - that's the price you 
pay for not going to IL and then machine code, I guess... although I 
think the gain, essentially FFI, more than pays it back.

>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?

Cheers,
Martin



-------------------------------------------------------------------------
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