Re: math.e and misc.e
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 ...
> 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
|
Not Categorized, Please Help
|
|