4 ms·
Is that a typical line of smalltalk? I mean if this is representative I can understand why C-like syntax won. Surely a language with descriptive names, and a
by skohan 6y ago
Is that a typical line of smalltalk? I mean if this is representative I can understand why C-like syntax won. Surely a language with descriptive names, and a call syntax resembling:
subject.verb(arguments)
Is more intuitive than the example you've given.
Of course it's also quite possible to write an equally cryptic line of C code.
- scroot 6y agoNo, this is not a typical line of Smalltalk. That would be considered a very sloppy array indeed. I think it's just there to demonstrate the different literal notations in the language. Smalltalk is actually quite readable in practice, though the keyword syntax seems to throw off experienced programmers from other languages. It's worth noting that the language was originally tested on children, so it was also designed to be easy to read and learn. The equivalent of your C code above could be something like: MyObject doSomethingWith: anArgument
- PaulDavisThe1st 6y agoaka Objective C :)))