News for hackers. Stuff that matters.
Re:Why your first Rust FizzBuzz implementation may not work by mercurial on Monday October 13, 2014 @02:26AM (#8447701)
Doesn't type inference stop at function boundaries, though? I'll grant you that idiomatic Haskell uses type annotations for function signatures (unlike idiomatic OCaml), but it is optional (which is convenient in a REPL).
Re:Why your first Rust FizzBuzz implementation may not work by steveklabnik on Monday October 13, 2014 @02:41AM (#8447720)
Yes, it does, but that's a deliberate design decision, not a flaw. We decided enforcing this idiom was a good idea.
Re:Why your first Rust FizzBuzz implementation may not work by mercurial on Monday October 13, 2014 @05:01PM (#8450646)
I think it was related to the quality of error messages as well.
Re:Why your first Rust FizzBuzz implementation may not work by steveklabnik on Tuesday October 14, 2014 @07:19AM (#8452866)
Right. When you infer signatures, a change in one place can cause an error somewhere else, and so the error message is very misleading.