[Cuis-dev] Poll: ? instead of is: ?

Juan Vuletich juan at jvuletich.org
Tue Aug 6 04:54:29 PDT 2019


Hi Folks,

One thing I don't like about the #is: message is that being a keyword, 
it usually requires parenthesis. Today I realized we can use #? instead. 
So, we could write:

aForm ? #GrayForm ifTrue: [ self doSomething ].

instead of

(aForm is: #GrayForm) ifTrue: [ self doSomething ].

Do you like it? What do you prefer, #is: or #? ? Reasons for adopting or 
not adopting it?

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list