help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Community sprint


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? :-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]