JuliaLang/julia — comment on commit 43bebc54c7e2925edac0c94900be0cec38e29abd
File:  line 0
By JeffBezanson:

This is a problem. We could use this definition:

```
_jl_flt_int_eq(x::Float, y::Int) = (fy=convert(typeof(x),y); x==fy && convert(typeof(y),fy)==y)
```

for cases like Float64==Int64, but the performance of it is a huge problem. Especially since `x==2` will unwittingly hit this case. Unless we use Int32 or a special type for small numeric literals. Having a special type for *all* literals isn't sufficient, since you need to know in advance if the integer fits in a Float64.