Re:Go Home Swift Compiler, You’re Drunk
by yandrypozo on Tuesday April 26, 2016 @06:28PM
(#11576276)
Wow, this is so sad, that compiler has to be extremely bad implemented
[ Parent
| on HN ]
It's just a bug. It's pretty easy to accidentally have such cases in a generic type inference algorithm, particularly one with implicit conversions. Other similar languages have had pathological cases in type inference too.
Re:Go Home Swift Compiler, You’re Drunk
by mpweiher on Wednesday April 27, 2016 @02:47AM
(#11578311)
>It's just a bug [..]
>Other similar languages have had pathological cases in type inference, too
These two statements are slightly contradictory. If this is common, then it's not just a bug, but a difficulty in implementing type inference.