News for hackers. Stuff that matters.
Re:A Fresh Look at Rust by mercurial on Wednesday October 01, 2014 @08:43AM (#8393987)
> Does OCaml still doesn't compile 1.0 + 2.0 or has that changed?

I'm not quite sure what you mean? In any case, the compilation speed isn't really an issue (especially since we're talking about Rust, which last time I used it wasn't exactly fast).

Re:A Fresh Look at Rust by bam365 on Wednesday October 01, 2014 @09:36AM (#8394189)
He's probably referring to the fact that you have to use different arithmetic operators for int and float in OCaml, so it would have to be 1.0 +. 2.0
Re:A Fresh Look at Rust by mercurial on Wednesday October 01, 2014 @10:00AM (#8394315)
Ah, that makes sense. It's still the case, but I guess it may be going away once implicits are released.
Re:A Fresh Look at Rust by edorrington on Wednesday October 01, 2014 @09:47AM (#8394237)
I think he's talking about the fact that OCaml has separate operators for floating point (i.e. in his example, you'd use 1.0 +. 2.0).
Re:A Fresh Look at Rust by swah on Wednesday October 01, 2014 @06:24PM (#8398190)
Yep, that's <float><int><float> and doesn't typecheck since you missed it too, my point is made :)
Re:A Fresh Look at Rust by mercurial on Thursday October 02, 2014 @12:51AM (#8399473)
Yeah. Honestly it's a quirk, but I prefer quirks going this way than the other way (like universal compare). That said, all languages have warts. And that's the best kind of warts, the one that is explicit and happens at compile-time.
Re:A Fresh Look at Rust by swah on Thursday October 02, 2014 @07:22AM (#8400258)
Good point. And to be honest, OCaml was the first language I used to have insanely fast compile times - and a REPL!