It has been a while since I read the paper, but my memory is that Slots lets you define features and/or constraints on inst-var's. For example, assigning default values or restricting the set of valid values.
This would probably be appealing for folks coming from languages like Java or C++, because they're used to all of their "slots" being statically typed. It does seem ironic that where those static languages have been trying to move toward being more dynamic, Pharo newbies would find themselves arrived at a language which is trying to make something that was purely dynamic into something more static. My understanding is that specifying a certain Slot-type can save the need to write, i.e., initializing or validating methods. In exchange, the number of concepts inherent in the language that must be learned and remembered is increased. Standard Smalltalk is only about 2 or 3 concepts -- sending messages and assigning pointers. Period. There's something exciting about that because even Grandma can grok 2 or 3 concepts. No other language is so simple. By introducing the implicit behaviors of slots, the number of different conceptual interactions between code and the slots it references increases exponentially with the number of slot-types. I fear trying to explain them to Grandma will have her eyes starting to glaze... PS -- I hope no one would characterize me as "violently" against slots. It may simply be my own ignorance.. On Fri, Jan 9, 2015 at 1:50 PM, Eliot Miranda <[email protected]> wrote: > > > On Fri, Jan 9, 2015 at 11:47 AM, Marcus Denker <[email protected]> > wrote: >> >> >> > On 09 Jan 2015, at 16:45, Eliot Miranda <[email protected]> wrote: >> > >> > Hi Marcus, >> > >> > >> > P.S. Maybe now Slots are ready for stealing by Squeak ;-) >> >> Everything I ever did for Pharo I wanted to do for Squeak… but I could not >> because >> someone was violently against it. > > > We will heal. It may take a long time, but we will. And things are going > great right now, especially for Pharo. So I hope that your pain will ease > and that one day you will be free of it. Hugs, and happy new year. And > thanks for Slots and Opal and all the other wonderful things you do. > >> Marcus >> >> > > > > -- > best, > Eliot
