4 ms·
You would think the part of the compiler that parses integer literals would assign them the type integer, making this close to a no op for the type checker.
by stonemetal12 3y ago
You would think the part of the compiler that parses integer literals would assign them the type integer, making this close to a no op for the type checker.
- slavapestov 3y agoNot the case when you have polymorphic literals, like in Swift or Haskell: let x: Int = 123 let y: Double = 123 But it looks like here the problem was not the type checker anyway.