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

It really depends on how you define "safe". Nim will allow you to deref null pointers (unless you annotate it with `not nil`, then it can never be nil, this results in compile errors if it is) but if they are, it will be like Java and throw an exception if --nilChecks:On. The only language I know that makes pointers safe is Rust, with it's borrow checker and such, but that's a tradeoff I don't really want and the options Nim provides are better for my case.


Ada, SPARK, ParaSail




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

Search: