Link Details

Link 23332 thumbnail
User 111696 avatar

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.
  • 8
  • 0
  • 2342
  • 678

Comments

Add your comment
User 200965 avatar

jola_zm replied ago:

1 votes Vote down Vote up Reply

Dice.com had a whopping total of 5 jobs yesterday....

buyer beware

User 107114 avatar

daniel replied ago:

0 votes Vote down Vote up Reply

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

User 201160 avatar

nullstyle replied ago:

0 votes Vote down Vote up Reply

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.

User 210221 avatar

jdh30 replied ago:

0 votes Vote down Vote up Reply

Looks like a camlp4 macro:

<:expr< 1+2*3 >

:-)

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)