On Tue, Nov 22, 2011 at 2:36 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:

On Nov 22, 2011, at 6:03 PM, Mariano Martinez Peck wrote:

Hi Ben. Nice idea. One small feedback: try to use blocks for the items rather than strings :)


Why ?

1) It is difficult to scape when you use simple quote ' . Hence, it is difficult to write your items.
2) There is no color highlighting ;)
3) When you save the method, strings are not compiled. If you use blocks, you can at least avoid compilation errors.
4) Because at the end what you put in those strings is code, hence, closures are a more accurate reification than string.
5) Strings are now well managed by the system when code is inside. For example, searching senders or refactoring tools wont work with code inside strings, but they do work with closures.

Maybe there are more reasons, but I am lazy to think more.

Cheers

cheers

On Mon, Nov 21, 2011 at 3:36 PM, Damien Cassou <damien.cassou@gmail.com> wrote:
On Mon, Nov 21, 2011 at 7:07 PM, St�phane Ducasse
<stephane.ducasse@inria.fr> wrote:
> Depending on the version I have different passwords so does general handle that?

'general' is for scripts that do not change between versions :-)

--
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry




--
Mariano
http://marianopeck.wordpress.com





--
Mariano
http://marianopeck.wordpress.com