Re: Homogeneous sequence

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

Salix wrote:
> 
> > > And what do you think about Pete's proposal:
> > And what do you think about Pete's proposal?
> 
> I'm strongly against introducing these new definitions in general. (And not
> only Pete's suggestion.)
> 
> For me Euphoria's motto is "just say NO to complicated programming languages".
> This change doesn't solves any of my coding problems but adds complexity to
> the syntax. 
> 
> I feel that this proposal is clearly against the "Clean and simple syntax",
> the "Minimal and simple to use
> Data Types", and probably the "Maintainability" points of the (non-official)
> mission statement (that I keep
> relevant). (See <a
> href="http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=8&fromYear=B&toMonth=A&toYear=B&postedBy=ray+smith&keywords=Clean+and+simple+Syntax">http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=8&fromYear=B&toMonth=A&toYear=B&postedBy=ray+smith&keywords=Clean+and+simple+Syntax</a>
> )
> 
> I think it is also against Rob's indirectly stated wish that Euphoria "will
> gain more users". (See <a
> href="http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=8&fromYear=B&toMonth=A&toYear=B&postedBy=craig&keywords=birds">http://www.openeuphoria.org/cgi-bin/esearch.exu?fromMonth=8&fromYear=B&toMonth=A&toYear=B&postedBy=craig&keywords=birds</a>
> ). Imagine a newbie asking how to define a simple "string" in Euphoria, that
> is a widely known and commonly
> used variable type? 
> 
> }}}
<eucode>
> list integer gain_for_salix
> -- or list atom gain_for_salix
> -- or list object gain_for_salix
> -- or sequence gain_for_salix
> -- or object gain_for_salix
> gain_for_salix="zero"
> </eucode>
{{{

> 
> ... a nightmare.
> 
> Regards,
> 
> Salix

It will lose even more users if it doesn't gain some more power.
A string is a sequence of printable.
A printable is an integer, or a subrange of integers - it all depends of how
strict you need to be.
It is still ok to define a string as a sequence - that's what we all do - but no
one here is happy to have {{1,2}} pass the type check. Are you?

CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu