Re: Eu's poor design(Irv)

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

Irv wrote:

<snip>

> See how this would confuse a beginner?
> Doesn't this make debugging harder if you
> don't know what type the data you're looking at is
> "supposed" to be? Or if you do know, but the data
> turns out to be something else.
>
> As you say, this is because Eu doesn't really have a
> string type.
>
> But "Hello" looks very much like a string, doesn't it?
> Eu didn't fuss about that assignment, so it must be
> ok, and most people who have written even one ("Hello
> World") program in any language other than machine
> code naturally expect a programming language to know
> about strings.

I also would appreciate a "string" type in Euphoria very much
(better two different string types: one for traditional strings,
and another one for Unicode strings).

What also makes debugging sometimes _very_ hard for me, is when I look
at 'ex.err', and see something like:

----------------------------------------------------------------------
 D:\temp\demo.exw:
    s = {84'T',104'h',105'i',115's',32' ',105'i',115's',32' ',97'a',110'n',
32' ',97'a',108'l',109'm',111'o',115's',116't',32' ',117'u',110'n',114'r',
101'e',97'a',100'd',97'a',98'b',108'l',101'e',32' ',115's',101'e',110'n',
116't',101'e',110'n',99'c',101'e',46'.'}
----------------------------------------------------------------------

(This is a string!! Who can read it?)
That also wouldn't happen with a "string" type.

<snip>

Regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |    |\      _,,,---,,_
 \ /  against HTML in       |    /,`.-'`'    -.  ;-;;,_
  X   e-mail and news,      |   |,4-  ) )-,_..;\ (  `'-'
 / \  and unneeded MIME     |  '---''(_/--'  `-'\_)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu