[Newbies] Two questions about Smalltalk language design
sebnozzi at gmail.com
Thu Dec 27 00:32:55 UTC 2012
I was interacting the other day with an user in a Scala mailing list,
and he had some questions about Smalltalk. From his FP (functional
programming) point of view there were some things that looked strange.
I tried to reply to the best of my ability, but still I don't really
know the background for these design decisions. So I come to you, real
experts, hoping for some answers.
The questions were:
1) Why do ST methods return "self" if nothing is explicitly returned?
(he would have expected something like "Unit" in Scala, or "Void" -
which I know makes little sense in a world like ST's, so I didn't
include this in the Stackoverflow question)
2) In Collections, why does "add:" return the object being added, and
The original interaction in the Scala mailing list (nice language, by
the way) was here:
Thanks a lot in advance!
More information about the Beginners