Euphoria: get(), value(), and boolean evaluation

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

I noticed something with get() and value() which may
be an error, or a feature (I do not have my tongue in
my cheek).

get() and value() return GET_SUCCESS and a valid
integer or real for input such as  "2.54cm" or "600m"
I discovered that accidentally, having forgotten
to strip off the trailing unit symbols. I don't
mind, but I wonder if that was the intended behaviour
of get() and value()

Boolean evaluation

I write a lot of things like:

if length(s)>0 and s[1]=whatever then...

Bingo! That is how I discovered that Euphoria evaluates
boolean expressions right to the bitter end, long after
they can be only true or false. A short-circuit would
be nice... but there is more important:

EUPHORIA FOR LINUX!

Thank you for attention. I'll get down from my soapbox now.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu