Base: slight simplification in int.jl#50654
Conversation
Use `~`, `zero` and shifts to simplify the definitions of `typemin` and `typemax`.
vtjnash
left a comment
There was a problem hiding this comment.
This seems likely unnecessarily harder for the compiler to constant evaluate, and incorrectly switches the position / ordering of Union and Type
|
Why is "harder for the compiler to constant evaluate" a problem? Naively, I'd think that would only be a problem the first time Julia compiles the relevant method?
What does this mean? Does it refer to the fact that, with this commit, methods like |
|
|
|
Why is I'm asking because I'm interested in somewhat similar but more significant changes elsewhere in |
Use
~,zeroand shifts to simplify the definitions oftypeminandtypemax.