Re:Go vs. Swift [pdf]
by majewsky on Thursday January 19, 2017 @09:46AM
(#13436151)
This only works because you're working with number literals here, which have the very liberal type "Num a => a". If I replace your main function by
I get a compile error:
[ Parent
| on HN ]
Re:Go vs. Swift [pdf]
by GregBuchholz on Thursday January 19, 2017 @12:36PM
(#13437576)
Right, it was just a fun little "Well Actually" moment.