Re:Go Home Swift Compiler, You’re Drunk
by pshc on Tuesday April 26, 2016 @06:52PM
(#11576419)
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.
[ Parent
| on HN ]
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.