Done, the new version accept now string or bloc as code :) Ben On Nov 22, 2011, at 9:01 PM, Mariano Martinez Peck wrote:
On Tue, Nov 22, 2011 at 4:57 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote: I agree that right now it's quite hard to write it by hand, but a UI will be done soon, so you will have colors and no problem with quotes.
The problem with blocs is that you will retrieve a string from UI, so it's a bit hard to convert it into a block (at least, I do not know how to did it properly ^^) So maybe I should have both ;)
I don't think a UI for that is worth it.
Ben
On Nov 22, 2011, at 6:42 PM, Mariano Martinez Peck wrote:
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
-- Mariano http://marianopeck.wordpress.com