Arc Forumnew | comments | leaders | submitlogin
1 point by Pauan 5137 days ago | link | parent

> "You're going to have modules? Do tell. Something like CommonJS modules, maybe? ^_^"

Yes, but not like CommonJS. I was going to save the explanation for when it's released, but I suppose I might as well tell my plan now.

Here you go: http://arclanguage.org/item?id=13977

> "What do you intend to do with "a!!!b"?"

It would be treated as 3 infix calls. So if ! expands to (l 'r) then it would be ((a '!) 'b) That may not be a good idea. By the way, a!!!!b would be ((a '!) '!) b

As for precedence, that's why I made it an alist rather than a table: it's sorted, so I can compare it in a top-to-bottom fashion. In other words, precedence is determined by the item's index within the alist.

> "That should be easy enough if you already have a plan for modules."

Yes, but I made it a requirement anyways, in case somebody had a crazy idea for custom ssyntax that was incompatible with modules.