Hello felix-list,

I think it would be a good idea to try to shamelessly steal syntax ideas 
from haskell. I think that haskell's syntax, and typeclasses, are its 
best features  -- and you've already got the latter! There would 
obviously have to be some changes, because haskell, as a pure language, 
doesn't have sequences of expressions (except for monadic notation, of 
course).

For example, one of the sexiest features of haskell is composition of 
functions. Using the notation "def" to denote function definition:
def foo = f · g
Since the "." character is sensibly used for field access, I would 
propose the use of "·" for composition.

Another cool thing: the use of backquotes to get infix notation. 5 `mod` 
2 is just very nice in my opinion. Also: operator overloading is very 
cool, and in particular, sections, as in: squares = map (^ 2).

Another thing that's very cool about haskell: the whitespace thing. I 
think there's a general consensus that it can make code more readable. 
Even ML based language like Ocaml and F# do the whitespace thing now.

Just my two cents as a lurker who contributes nothing but hot air ;-)

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