Re: [stack] Parameters: ordered versus named
rahul <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
|On 9/7/07, Manfred Von Thun <[email protected]> wrote: |... |But as far |as I know these languages use standard positional notation |by default and allow this other notation only as a |convenient variation. I have never heard of a language |in which this way of calling is standard. Anyone?? SmallTalk? (and its descendants - ObjectiveC and ruby) though in ruby this is not the default. (the unix model of options, being the other, but it is not an enforced standard.) a SmallTalk example. ====================================== multiply: i1 with: i2 and: i3 "pointless multiply" | mul | mul := i1 * i2 * i3. ^mul ====================================== Usage: >multiply 3 with:2 and: 5 =30 SmallTalk is also pure in its other aspects (much more than any of its descendants). ie: the control structures are built on top of this model.