Le 26/07/2014 10:00, stepharo a écrit :
What I like with the #name=>Var notation is that it puts the name of the variable first. And it is just an expression (you can evaluate it, itâs the same as BooleanSlot named: #boolean)
yes this is nice.
Not much by me. Have to remember what => means (and that it isn't -> or
= or > or + or @)
I'd prefer self-documenting and explicit: #name isA: ClassOfSlot (4 characters instead of 2, ok, but not difficult to remember) or the Roassal approach: single character, which does not try too much to have a meaning, but be easy to memorize. #name @ ClassOfSlot (wouldn't that mess with points?) After, I'd say #name first if it is proven that we think "name of instance variable" before "type of slot" when we write a class description (is also better when looking at "name of instance variable" with optional qualification). Thierry