News for hackers. Stuff that matters.
Re:Compile-Time DI vs. Run-Time DI by maxxxxx on Tuesday April 30, 2019 @10:53AM (#19788449)
Why Rust? Strongly typed languages had this capability for a long time.
Re:Compile-Time DI vs. Run-Time DI by oldgun on Tuesday April 30, 2019 @11:26AM (#19788796)
I believe what he means is that Rust takes this a step further by ensuring memory safety at compile time.
Re:Compile-Time DI vs. Run-Time DI by jerf on Tuesday April 30, 2019 @12:03PM (#19789136)
Rust is merely the latest in a long line of efforts in that direction. It may have located a particularly nice point in the cost/benefits space, and the borrow semantics I believe are novel, but it's well inline with many efforts to make compile time errors out of as many things as possible, from a lot of C++ stuff, Ada, Eiffel, Haskell, a variety of proof methods, the list goes on, and even the things I list are themselves exemplars of entire streams of thought on the idea rather than a complete list, of course.

(This is not a criticism of Rust. It is not a criticism of a work to place it correctly in its historical context. Very few things consist entirely of novel ideas, and very few of those are any good, if any.)

Re:Compile-Time DI vs. Run-Time DI by maxxxxx on Tuesday April 30, 2019 @01:46PM (#19790186)
Agreed. Rust is another step in the right direction but I don't think it invented a new paradigm.