sounds fun. For the syntax, if we could keep the one of Smalltalk this  
would be great
because
        find . *.tex -print name -exec {}

looks like something you want to avoid. else bash is good enough


for me right now I want
        to code in pharo the lib
        to be able to write little scripts to script them.

:)

On Feb 25, 2009, at 10:48 PM, Nicolas Cellier wrote:

> Marcus Denker <den...@...> writes:
>
>>
>>
>> On 25.02.2009, at 22:27, Matthew Fulmer wrote:
>>
>>>>
>>>> Each command will then be a message sent to the object referenced  
>>>> by
>>>> the variable 'shell'.
>>>>
>>>> entering 'ls' will then invoke 'shell.ls'...
>>
>> I would say that a command like "ls" is not a method. It's an object
>> (instance of a sublass of "Script" or "Command").
>>
>> You want, for example, inherit things like command line parsing,
>> standard options
>> (e.g. --help) and things liket that. A command like ls is far too
>> complex to be
>> just one method.
>>
>>      Marcus
>>
>> --
>> Marcus Denker  --  den...@...
>> http://www.marcusdenker.de
>>
>
> I would say ls is a message, and Shell ls answer with a LSCommand  
> which is
> kindOf: Command.
> A Command use lazy evaluation: it does not evaluate until a end of  
> line or pipe
> message triggers evaluation (i mean send the message #value).
>
> Before being evaluated, Command behaviour can be modified by sending  
> all sort of
> message, like -l --help etc...
> Of course, apart options which are messages sent to the command  
> (eventually with
> arguments), a list of arguments can be passed to the Command itself  
> (Command
> valueWithArguments: aList).
>
> Just have to invent the syntax now...
>
> Nicolas
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to