chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] Pessimizing undefined behavior


From: megane
Subject: Re: [Chicken-hackers] Pessimizing undefined behavior
Date: Thu, 04 Apr 2019 20:47:35 +0300
User-agent: mu4e 1.0; emacs 25.1.1

address@hidden writes:

>>
>> Nothing changes if we statically assign these values, the user still
>> cannot rely on undefined to be either true or false.
>
> Once you give a fixed meaning, even by doing an optimization based
> on this meaning, users _will_ start to rely on it. At that stage it isn't
> undefined anymore.

There's two ways I can think of getting warnings, then.

a) Easy version. Randomly choose true or false at each if. Use some
method that keeps the builds deterministic. This wouldn't assign any
more fixed meaning for undefined than there currently is.

b) Add special code to handle undefined in ifs. Adds one more of those
type tree walkers. May not be entirely trivial. Any takers?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]