|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Community sprint |
Date: | Sat, 30 Sep 2006 10:36:24 +0200 |
User-agent: | Thunderbird 1.5.0.7 (Macintosh/20060909) |
String addMethod: #replace:with: doing: [ :source :dest | ...code here... ]. Admittedly, this doesn't give you the traditional "replace: source with: dest" syntax, but it does avoid having to invent anything too alien.
The point is exactly that it is ok to...
invent an entirely new syntax for reading in big chunks of code, that's not based on reading and executing single statements.
:-)
String - join: aCollectionOfStrings ...code here... - replace: source with: dest ...code here...
I already saw this somewhere, didn't I? :-)
[Prev in Thread] | Current Thread | [Next in Thread] |