On Sun, Oct 16, 2016 at 8:38 PM, Nicolai Hess <nicolaihess@gmail.com> wrote:
Am 16.10.2016 14:35 schrieb "CodeDmitry" <dimamakhnin@gmail.com>:
I define Magic as "An opaque abstraction or an abstraction you think is opaque until you learn better.", to a beginner, everything is deeply Magical.
That said, much of Smalltalk's opaqueness is not due to the language, but due to me being a beginner. I'm sure there's a way to actually force sending a message to a dictionary via something like dict['at:put:']('foo', 'bar') but I am not familiar enough with Smalltalk to express it, so it feels like the only way to send a message is via this multi-part message abstraction.
You can always access the method dict directly to get a method and call "perform" or perform with arguments.
To put that in more concrete terms... a := Array new: 1. a perform: #at:put: withArguments: {1. 'Hello, world'}. a inspect. Note how #at:put: is a single identifier. cheers -ben