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

> People choose C++ because it's a flexible language that lets you do whatever you want.

You went on a bit too long. C++ lets you do whatever. Whether you wanted that is not its concern. That's handily illustrated in Matt Godbolt's talk - you provided a floating point value but that's inappropriate? Whatever. Negative values for unsigned? Whatever.

This has terrible ergonomics and the consequences were entirely predictable.



It's just strong typing. You can do it in C++ too.




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

Search: