Re: Structures

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

At 05:36 PM 4/21/98 -0400,  Robert B Pilkington wrote:

>On a different subject from the namespace stuff... What about structures?
>I know they were mentioned a few weeks ago, but I feel that structures
>will make a lot of my code more readable and faster.
><snip some code>

All good points. We don't spend time with type conversions and
casting with Euphoria. Instead, we spend our time debugging
functions that get an atom when they're expecting a sequence,
or vice-versa. User defined type checking doesn't work on elements of a
sequence, and sequence indexing leaves
something to be desired. Enum (preprocessor) offers a
partial solution to the indexing problem, but is far from ideal.

The structure seems to be the most suitable solution to all
these problems. I know, we all hate to complicate things,
but there are pretty good reasons for some of the features
provided by other languages.

Irv
----------------------------------------------------------
--Visit my Euphoria programming web site:--
--http://www.mindspring.com/~mountains   --
----------------------------------------------------------

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

Search



Quick Links

User menu

Not signed in.

Misc Menu