Re: Stupid Newbie-sounding question.
- Posted by Juergen Luethje <j.lue at gmx.de> May 30, 2004
- 558 views
Irv wrote: > Michelle wrote: > >> but the problem with that is that it prints "John" as a string of the ascii >> codes, >> instead of an easily editable "John".. >> if i add if sequence() it counts "John" as a sequence, just like the >> sequence of >> flags.. >> so my question is... >> how i can (within a loop) tell it to evaluate whether to puts or print? >> >> bah..told you it was a stupid newbie question >> >> Michelle Rogers > > Not stupid at all. > What the Eu docs call "flexible", I call a design flaw. > Euphoria cannot tell the difference between "John" and {74,111,104,110} > where the latter might be a series of integers or flags or whatever. [snip] Yes, like "integer" is a special type of atom, there definitely should be a "string" datatype, which is a special type of sequence. At the first glance, it might look as if an additional data type would make Euphoria more complicated, but (latest) at the second glance it is clear that Euphoria would become *much* more flexible (see Michelle's problem here), simpler, safer, and better readable. Regards, Juergen