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

Rust lets you do the same because the static typing keeps you safe. In Rust, treating the second 'a' like a number would be an error. In ruby, it would crash.


Let’s rephrase: is naming a variable typing? As for runtime vs. compile errors - isn’t this just a trade off of interpreted languages?




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

Search: