InitialValues.jl icon indicating copy to clipboard operation
InitialValues.jl copied to clipboard

Define equalities?

Open tkf opened this issue 4 years ago • 1 comments

It may be nice Init(+) == 0 is true. But there is a question how isequal should work (e.g., what Dict{Any,Any}(Init(+) => :x)[0] should do?).

tkf avatar Apr 25 '20 01:04 tkf

It'd be bad to define isequal(Init(*), 1) === true and isequal(Init(*), "") === true because it breaks transitivity.

Defining = may be OK since we already have, e.g., I(3) == I == I(4).

tkf avatar May 17 '20 23:05 tkf