Blocks

Sean DeNigris: #Smalltalk #ProTip: Blocks, though powerful, can create unexpected problems. E.g. they can't always be safely serialized. Smalltalk's code-as-objects metasystem comes to the rescue. `[ aReceiver doSomething ]` can become `MessageSend receiver: aReceiver selector: # doSomething`. tweet

[Enh]: Work, Authors MA Desc. -> ToMany w Spotter Support. commit

~

@noha@mastodon.technology @NorbertHartl Antwort an @SeanDenigris und @TorstenAstares This is useful. I often use a Command Pattern approach. Commands are serializable the same way. The work on clean blocks by @marcusdenker opens another good possibility. Clean blocks can always be serialized as AST or string. tweet