Smalltalk scripting (was Re: jpython anyone?)
ajalis at twu.net
ajalis at twu.net
Mon Dec 11 22:17:36 UTC 2000
On Mon, Dec 11, 2000 at 04:54:31PM -0500, Bijan Parsia wrote:
> What's a script look like? Well maybe (for *nix) something like
> -----
> #!path/to/squeak
>
> | temp | "Well, why not allow explict declarations? ;)"
>
> def helperFunction: [:x :y |
> x doesSomethignTo: y].
>
> "sugar for helperfunction := [:x :y....]"
>
> temp := someInput.
>
> helperFunction (temp, argv at: 1).
> "sugar for helperFunction value: someInput value (argv at: 1)"
> ------
Gnu Smalltalk is somewhat like this.
Why not use Gnu Smalltalk's syntax here (instead of
defining keywords like "def").
Asim
More information about the Squeak-dev
mailing list
|