1. Re: print

Rob,

You wrote:

>print() displays any Euphoria object.
>It displays all atoms as numbers.
>This is the simplest way to display an object.
>
>Boehme's print.e looks for sequences containing
>atoms that are all in the range 32 to 255, and it displays
>those sequences as strings (whether they are meant to be
>strings or not).

While I agree the original print() should be preserved, the simple
fact of life is I have not used it since Gabriel introduced his
version. Currently I am mostly using modification of Pete's
smart_print(), pretty much the same thing, and I am sure it, or a
variant of it, would be very desirable addition to misc.e, under
a different name, perhaps.


On a related topic, I think the standard error files would greatly
benefit from a similar treatment. Currently we get ugly, difficult to
scan terribly long mixtures. For example

    box = {53'5',110'n',263,244}
    name = {101'e',117'u',112'p',104'h',111'o',114'r',105'i',97'a'}

Would it not be much nicer and more intelligent to get

    box = {53,110,263,244}
    name = {101,117,112,104,111,114,105,97}"euphoria"  ?

jiri

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu