Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This makes more sense as an argument for dynamic typing or GC by default than a “safe” keyword, imo.

From my experience with Rust, there’s basically _never_ any cost in sticking to safe code. The standard library and crates pretty much always give you enough tools.

Unsafe is really only ever needed if you’re implementing the core of an abstraction, which is probably not something that’s going to deter “casual” users imo.

The borrow checker and and type system definitely can be thorny at times, though. Other times they’re very easy to work with! But having a more ergonomic way to fall back to Java-like behavior, if only for debug builds, would make languages like Rust _much_ more accessible.



D's nascent ownership/borrowing checker will operate at the function level. So you can incrementally use it as it suits your application.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: