[Newbies] #and:, #or: methods in blocks?

Petr Fischer petr.fischer at praguesoft.cz
Tue Apr 10 21:40:57 UTC 2007


Hi,

methods #and:, #or: etc. are defined in Boolean class only - why this  
methods are not defined in "blocks" too?

* standard way (brackets mix):
( condition_1 ) and: [ condition_2 ] ...

* this (fictive) way looks beter (for me):
[ condition_1 ] and: [ condition_2 ] ...
more complex one: [ [ cond_1 ] and: [ cond_2 ] ] or: [ cond_3 ]

Thanks for clarification, pf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2435 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20070410/65e3caaf/smime.bin


More information about the Beginners mailing list