Re: [stack] Advantages of cat, joy ..?
Don Groves <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
On Feb 18, 2009, at 5:10 PM, eas lab wrote: > ... major snippage... > > As a prompt to 'how cat increases productivety', I'm giving > examples of what IMO *does* increase productivety. OOF and all > languages have their syntax for any 'construct' including the > declaration and definition of classes/objects. So eg. an > IF/THEN/ELSE in all laguages is just a thing with 3 args. > So you forget about all the syntax crap, and just fill in > the args. Exactly! So would you rather see the typical Pascal if-then-else statement or this: fun1 fun2 arg if-else where if-else is a function that examines arg, executes fun1 if arg is true, executes fun2 otherwise, and cleans all three off the stack leaving the result of the appropriate function in their place? Once used to this way of actually forgetting about all the syntax crap, it becomes just as readable, and far more succinct than any Pascal-like language. -- don > Thanks, > > == Chris Glur.