Re: Unknown as a legal var state?
Rom wrote:
> From: "Juergen Luethje" <jluethje at gmx.de>
>
>> The above mentioned use of "nil" is primarily independent of the problem
>> of uninstanciated variables, and those things shouldn't be mixed up,
>> I think. Using nil for such variables looks easy indeed, but I think it's
>> also easy to genarate a runtime error (as Euphoria currently does), to
>> deal with them. The question is to me, what brings more benefit?
[snipped much text about the usefulness of three-valued logic]
Rom, it isn't necessary to convince me of the usefulness of three-valued
logic in general. I wrote myself in my previous post in this thread:
'I would appreciate it very much, if there were a "3-value-logic"
(false/unknown/true) in Euphoria.'
But that does not necessarily mean, that I also think that using 'nil'
is a good way to deal with uninstanciated variables.
Again: Three-valued logic and uninstanciated variables are different
topics, which shouldn't be mixed up.
Regards,
Juergen
|
Not Categorized, Please Help
|
|