Author Topic: Icon  (Read 1537 times)

Tomaaz

  • Guest
Icon
« on: 21. October 2018, 22:10:03 »
Has anyone tried Icon? It's been around for a while (41 years), but it doesn't look dated. Last stable release is 5 years old but it's being maintained by people from The University of Arizona. Just a month ago Icon has been re-validated for new version of Ubuntu and MacOS. There is also a Windows version of Icon. It's extremely well documented, comes with a set of libraries and is simple to use. No OOP, just old-school procedural stuff. Website - https://www2.cs.arizona.edu/icon/ .

phred

  • Newcomer
  • *
  • Posts: 4
    • View Profile
Re: Icon
« Reply #1 on: 27. October 2018, 16:34:28 »
I did try it 20 or so years ago, it was interesting.  It was also expanded by Unicon: https://unicon.sourceforge.io/ which I played with off and on for a while and even bought the book for although the book was sold during a move.  I always was a sucker for odd languages.

Tomaaz

  • Guest
Re: Icon
« Reply #2 on: 30. October 2018, 09:43:08 »
It looks like they don't have else if...

phred

  • Newcomer
  • *
  • Posts: 4
    • View Profile
Re: Icon
« Reply #3 on: 30. October 2018, 15:49:55 »
Yeah, I see if-then-else but no elseif.

ZXDunny

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
Re: Icon
« Reply #4 on: 30. October 2018, 20:16:38 »
Excuse my ignorance, but what's special about Else If?

Tomaaz

  • Guest
Re: Icon
« Reply #5 on: 31. October 2018, 11:48:44 »
It's a part of majority of languages?

phred

  • Newcomer
  • *
  • Posts: 4
    • View Profile
Re: Icon
« Reply #6 on: 31. October 2018, 15:39:40 »
In this instance probably not much since I do see a case statement, but to me either is cleaner looking than a list of if-then's.

ZXDunny

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
Re: Icon
« Reply #7 on: 31. October 2018, 15:58:52 »
Well as I understand it - and correct me if I'm wrong - but BASIC is generally built (for IF) with IF <condition> THEN <statement> ELSE <statement> and since IF itself constitutes a statement, then IF x THEN y ELSE IF z THEN a etc etc is perfectly fine?

Tomaaz

  • Guest
Re: Icon
« Reply #8 on: 31. October 2018, 17:22:01 »
In this instance probably not much since I do see a case statement, but to me either is cleaner looking than a list of if-then's.

Case statement can't replace every else if scenario.

Well as I understand it - and correct me if I'm wrong - but BASIC is generally built (for IF) with IF <condition> THEN <statement> ELSE <statement> and since IF itself constitutes a statement, then IF x THEN y ELSE IF z THEN a etc etc is perfectly fine?

Unless y and a are complex multi-statement blocks.
« Last Edit: 31. October 2018, 17:24:27 by Tomaaz »