Re: [stack] Applicative Syntax == Concatenative Syntax
"William Tanksley, Jr" <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
Christopher Diggins <[email protected]> wrote: > We can define the open paranthesis, close paranthesis, and comma as follows: > define ( { } > define , { curry } > define ) { curry eval } > This allows us to write: > Add(2, 3) > Which leaves the value 5 on the stack just as we would like to see. Clever and sneaky! I like it. Of course, I should note that it's missing the main attraction of applicative languages -- the ability to name parameters. But anyhow, it's at least a great way to provide a bridge to a traditionally applicative API, perhaps one that has more parameters being passed to functions than it really should :-). And that's _practical_. -Billy