Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 4518 days ago | link | parent

I don't know if you saw the thread about infix in wart[1], but I can say:

  def (y x)
    (m*x + b)
All operators have the same precedence, but operators without whitespace have precedence over operators with whitespace:

  (n * n-1)
The major drawback is, of course, that you can no longer use '* or '- in symbols. I use capitalization for globals and underscores in long names, and have been mulling camelCase.

(Wait, didn't someone check the pitchforks at the door?)

[1] http://arclanguage.org/item?id=16775