Related articles |
---|
new language syntax aberegov@home.com (Aleksey Beregov) (2001-08-24) |
Re: new language syntax remove.haberg@matematik.su.se (2001-08-25) |
Re: new language syntax 04lzvud73001@sneakemail.com (2001-08-25) |
Re: new language syntax svdh@wanadoo.fr (2001-09-21) |
Re: new language syntax howard.s.modell@boeing.com (HSM) (2001-09-25) |
Re: new language syntax rboland@unb.ca (Ralph Boland) (2001-09-26) |
Re: new language syntax joachim_d@gmx.de (Joachim Durchholz) (2001-10-06) |
Re: new language syntax wclodius@aol.com (2001-10-20) |
Re: new language syntax cfc@world.std.com (Chris F Clark) (2001-11-05) |
From: | 04lzvud73001@sneakemail.com (Tim Olson) |
Newsgroups: | comp.compilers |
Date: | 25 Aug 2001 13:25:57 -0400 |
Organization: | none |
References: | 01-08-138 |
Keywords: | design |
Posted-Date: | 25 Aug 2001 13:25:57 EDT |
"Aleksey Beregov" <aberegov@home.com> wrote:
| I am developing the syntax for a language which should [must] be very
| suitable for working with sets, collections and other aggregate types.
|
| If somebody has an experience or ideas in this field send me please
| your feedback.
Note that putting all these features directly in the syntax is not
necessary; see for example how Smalltalk, with its extremely simple
syntax (5 keywords, just a few rules) has the best collection support
I've come across. Much of this is due to the ubiquitous use of Blocks
(anonymous functions) as parameters in the collection library.
"internal iteration"
aCollection do: [:each | each printOn: stream].
"mapping"
aCollection collect: [:each | each squared].
"selection"
aCollection select: [:each | each > 7].
--
-- Tim Olson
Return to the
comp.compilers page.
Search the
comp.compilers archives again.