By bloid
via jjinux.blogspot.com
Published: May 26 2007 / 02:43
Anyone who's ever looked at Erlang knows that the syntax is downright strange. For instance, Python uses "#" for comments, but Erlang interprets "8#7" as 7 in base 8 notation. Python uses "%" for modulo, but Erlang uses "%" for comments. Erlang uses "rem" for modulo, but "rem" is used as a comment delimiter in some other syntaxes.
Comments
jola_zm replied ago:
Dice.com had a whopping total of 5 jobs yesterday....
buyer beware
daniel replied ago:
You know, maybe I'm missing something, but that syntax seems horribly cryptic to me. I don't know, maybe there's some deep, intuitive meaning to <<?blahBlah:123 !>>
nullstyle replied ago:
It's pretty simple, really. the > signifies that it is a bit-syntax expression. A word beginning with ? is a macro expansion. the ! in your example is a syntax error.
jdh30 replied ago:
Looks like a camlp4 macro:
<:expr< 1+2*3 >
:-)
Voters For This Link (8)
Voters Against This Link (0)