Re: math.e and misc.e

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

Hi Juergen,

Language that use nil values usualy don't use for reporting error but to signal
that an undefined state.
for exemple
sequence  s
if s = nil then ....
here nul is use to check if s have been assigned a value and report true if it's
not the case.
I don't think nil should be used to report error state, it would be rather
confusing to me.

regards,
Jacques Deschênes



Juergen Luethje wrote:
> 
> jacques deschênes wrote:
> 
> > Not so, many languages have a nil value and doesn't use any special "if" for
> > it.
> > Some simply define in their semantic that a nil should be considered as
> > false
> > in boolean expression.
> > 
> > regards,
> > Jacques Deschênes
> 
> Then I'd like to repeat me old suggestion: introduce a NIL value in Euphoria.
> Not necessarily tomorrow or next week, but ... smile
> The main advantage in practice IMHO would be to have a special value
> available that can be returned by user-defined functions to unambiguously
> tell the calling program that there was an error in the function.
> 
> <snip>
> 
> Regards,
>    Juergen

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

Search



Quick Links

User menu

Not signed in.

Misc Menu