Re: Re[2]: (Another) (small) Eu 2.5 feature request.

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

On 24 Sep 2004, at 16:53, Patrick Barnes wrote:

> 
> 
> > > Really? So there's no pattern whatsoever to the array? Can you expand
> > > that description?
> > 
> > I used getxml() for years to extract freeform unstructured data from
> > sequences, like this:
> > 
> > <h1>Cat Stevens </h1> <fld01>Cat Stevens</fld01> <br>
> > <fld29> </fld29> <fld18> </fld18> <br>
> > 1. <defblk> <Syntax>propnoun,sing</Syntax>=20
> > <Semantic>per+male</Semantic> <def>a singer and songwriter in the USA;
> > wrote "Baby It's A Wild World" and "Lady D'Arbanville" for the actor and= 
> > model Patti D'Arbanville.</def> </defblk> <br>
> > 
> > or this:
> > 
> > <h1>cat </h1> <fld01>cat</fld01> <br>
> > <fld18>catty,cattier,cattiest,cattily,cattiness,cattish</fld18> <br>
> > <fld29>cats,catting,catted</fld29> <br>
> > <snip>
> > 2. <defblk> <fld20>03</fld20> <Syntax>noun,sing</Syntax>
> > <Semantic>real+animal</Semantic> <def>a small, lithe, soft-furred animal= 
> > (<altname>Felis cattus </altname>) of this family, domesticated since
> > ancient times and often kept as a pet or for killing mice</def> </defblk> <=
> > br>
> > 
> > 
> > Kat=0F
> 
> Interesting... (sorry, can't quite read it properly, all these damned
> =20's...)
> 
> My point is, despite the fact that Euphoria *can* hold this
> unstructured data very easily...
> 
> As I have found many times, most of my programming errors are caused
> by unexpected non-homegenity (I've made a mistake in subscripting, or
> data operations).
> 
> Most programming tasks and most programmers need to use data that is
> largely homogenous... something that an improved typing mechanism
> would greatly help, especially for diagnosing errors.

Ok, associated lists, and type check it all you want before the write to the 
data sequence is done. Furthermore, you could save the data to non-
sequence memory using any of the "raw memory" manager libs (you'd likely 
need length checking at least for the raw memory stuff). then you could do 
the column addressing, know what's been stored, etc.

I don't know where the =20 came from.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu