News for hackers. Stuff that matters.
Re:Rust needs a web framework for lazy developers by raxxorraxor on Monday October 07, 2024 @11:31AM (#41767030)
I did mean one public class per file.

I didn't mean syntax or core lib to be similar, I just generally meant that both languages impose restrictions on themselves which might seem sensible at first.

Re:Rust needs a web framework for lazy developers by Ygg2 on Monday October 07, 2024 @11:36AM (#41767070)
Java isn't that restrictive. Rust's type system is much more restrictive and customizable.

That said, a good way to think about programs is a series of restrictions, i.e. invariants. Truth be told, only Ada Spark so far really embraced invariants.