Re: Homogeneous sequence

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:
> 
> Derek Parnell wrote:
> > 
> > Try reading out source code over the telephone.
> > 
> <snip>
> >
> >   alias atom list text
> >   alias text list file
> >   file options
> > 
> LOL! That tickled me, thanks!
> 
> Obviously you're a fan of D unlike me and on closer reading it has merits but
> that specific syntax is not an Eu fit, imo.
> 
> Still giggling,
> Pete

Even more concise and visually intuitive:
{atom} s -- a sequence of atoms
{{integer}} -- a sequence of sequences of integers
{{}} -- a sequence of sequences

Since the interpreter expects type marks in very specific places, this construct
is not ambiguous at all.
And {atom}(s) could be parsed properly, including inside an if/while statement.

öbject" in the middle would be optimised away easily, without any need to error
out.

How about that?

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu