Re: Discussion concerning [POLL] Sequences of types

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

Matt Lewis wrote:

> Juergen Luethje wrote:
> > 
> > From several discussions in the past, I think many people (including me)
> > would greatly appreciate to have some sort of structured data type in
> > euphoria. Do you think it's possible to get that without too much effort
> > and trouble?
> > 
> Yes.  I see this as probably the most significant enhancement to the language
> that's been proposed so far, although I think the 'structured sequence'
> feature request on sourceforge isn't complete.
> 
> I think that ooeu made a good start at structured data.  Here are a some
> links to the docs:
> 
> <a
> href="http://ooeu.sourceforge.net/docs/CLASS_SPECIFICATION.htm">http://ooeu.sourceforge.net/docs/CLASS_SPECIFICATION.htm</a>
> <a
> href="http://ooeu.sourceforge.net/docs/DOT_NOTATION.htm">http://ooeu.sourceforge.net/docs/DOT_NOTATION.htm</a>
> 
> Disregard the OOPishness if you like, and omit the routines, at least for
> now.  This could also further the goal of encapsulation (to a point, at 
> least) by limiting the visibility of members/routines of a structure 
> (ooeu doesn't do this).
> 
> Since the front end would know about the data when it's assigned, we could
> emit a type check instruction (assuming it's not verifiable at compile time)
> for the appropriate data type (thus getting the cheaper type checking that 
> the "Sequences of types" proposal seems to give).
> 
> We also get all the goodness of not having to declare lots of constants
> for accessing the data.  Not to mention that if we had this sort of thing,
> we could build IDEs with code completion--anyone who's used Visual Studio,
> Eclipse or some similarly powerful IDE can attest that this is a big
> helper:  reduce typing, errors, coding time.
> 
> Matt

Cool! That sounds exciting.

Regards,
   Juergen

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

Search



Quick Links

User menu

Not signed in.

Misc Menu