This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Smalltalk and C-style language difference
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
A lot of people take one look at the Smalltalk syntax and turn away for good. This is not understandable given that most languages change the C-style syntax slightly any way.. regex is completely different.. stack based languages are completely different again.. functional languages are different. Open your minds people.
I have one particular example that I'd like to share with you though. Here it is:
canvas displayLineFrom: (topPoint x - gibDistance @ topPoint y) to: (topPoint + 1).
I'd just like to say that both are nasty to read.. but, these days I find the Smalltalk syntax much more concise when it comes to these sorts of co-ordinate type calculations.