So, as a group some people at work are reading “7 Languages in 7 Days”. ‘It’s a good exercise to get some fresh blood into our brains. ‘Some of the languages covered are Ruby, Scala, Haskell, Io, Prolog and a couple of others. ‘Today we talked about Io. ‘Io is a prototype based language and it was really fun to do the exercises. ‘From simple fibonacci implementation to altering fundamental constructs of the language like changing the ‘/’ operator.
Overall I don’t really think i’ll be using Io in my day to day…ever. ‘However it’s interesting to work in a language that makes you ‘think’ differently; i’ve been doing Java too long.
I’m no Io expert (only used for a day) but I will take the chance of posting some of my source code below.
return the nth number in the sequence
Make Divide by Zero Return 0
I have others but I won’t post them all, I think the above examples are sufficient for you to some of the constructs in the language.
Comments