Arc Forumnew | comments | leaders | submitlogin
What I learned from Icon (vanderburg.org)
2 points by akkartik 3933 days ago | 2 comments


2 points by jsgrahamus 3932 days ago | link

Unicon (http://unicon.sourceforge.net/) is the successor to Icon. Both languages had/have good support in terms of experienced people willing to answer questions.

-----

1 point by akkartik 3933 days ago | link

I'd read about Icon before (e.g. http://arclanguage.org/item?id=17476), but forgotten the key insight of Icon:

"functions will not be called unless the calls within do not fail, so"

  if y < (x | 5) then write("y=", y)
"can be shortened to"

  write("y=", (x | 5) > y)
---

I'd also somehow missed that it had the infix-chaining idea long before wart:

"the < operator returns its second argument if it succeeds, allowing things like a < b < c" https://en.wikipedia.org/wiki/Icon_%28programming_language%2...

(Compare http://arclanguage.org/item?id=16775)

-----