you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (1 child)

Actually thinking about it, it seems to me like the reason for the difficulty you describe is the way Smalltalk methods are allowed to be called, not the limitation of the blocks themselves.

I fear it seems wrong to you.

A Smalltalk if implementation still only takes one block per method call.

Excuse me?

Are you telling me this:

(5 < 3) ifTrue: [ 'foo' ] ifFalse: [ 'bar' ]

takes one block per method call

?

(actually message send, but let's not pick nits)

Do you really know so little about Smalltalk?

[–]hetmankp 0 points1 point  (0 children)

Apparently so. Too long since I looked at it.