Re: IDE & Euphoria 3.0

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

John DeHope wrote:
> <snip>
> We should all thank David Cuny for providing us with the best possible
> text editor to write Euphoria programs in. DONATE THOSE SMILEY DOLLARS!
>
> I know that Euphoria includes the Trace ability, but this is extremely
> limited.

I disagree - I have used (and cursed) trace / debug "facilities" in
several
commercial languages, and aside from the awkward way of displaying
strings, the
Euphoria trace is the most usable of all.

I agree wholeheartedly with the following, however:

> Finally, I would like to throw my two cents in for the features of
> Euphoria 3.0.
> 1) Data structures
> 2) A built-in (read: written in assembly) save/load of sequences or
> structures. Random access if at all possible, linear access (like a text
> file) would do though.
>
> Here is the syntax I see for #1...
>
>         structure ClientRecord
>                 sequence name
>                 sequence address
>                 sequence phone_number
>                 atom age
>                 atom salary
>         end sequence -- (Don't you mean "end structure"?)
>
>         ClientRecord bob
>
>         bob.name = "Bob Jones"
>         bob.address = "1221 West Toad Street"
>         bob.age = 30
>
> This ties perfectly in with Euphoria's atom/sequence methodology. As it
> stands now I have to write ".e" files with tons of "global constant"
> statements for all the indexes into my data structures. For example,
> this is how I would code the above...
>
>         global constant ClientRecord_Name = 1
>         global constant ClientRecord_Address = 2
>         global constant ClientRecord_Phone = 3
>         global constant ClientRecord_Age = 4
>         global constant ClientRecord_Salary = 5
>
>         sequence bob
>         bob = repeat ( 0 , 5 )
>         bob [ ClientRecord_Name ] = "Bob Jones"
>         bob [ ClientRecord_Age ] = 30
>
Not only that, but with the present situation, you lose the "safety" of
Euphoria's automatic type checking.  Your suggested structure would
restore
type checking, preventing assignments like age = "twwnty" or salary =
"Fred".
A much needed improvement, plus it fits into the current way of doing
these
things as implemented in several other languages. Also, it's clear and
understandable.

Regards,
Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu