3 ms·
In smalltalk the parameter names aren't mandatory in the sense of many other languages. They are actually part of the method name. So robot put: thing in: co
by rahoulb 9y ago
In smalltalk the parameter names aren't mandatory in the sense of many other languages.
They are actually part of the method name.
So
robot put: thing in: container.
And
robot put: thing on: shelf.
Are two separate messages that are both understood by the robot instance - "put: in:" vs "put: on:"
- igouy 9y agoI asked hota_mazi to provide an example which demonstrated what they were talking about, to explain why they said "Smalltalk got it wrong by making all the parameter names mandatory". Are you hota_mazi ?