Hacker News new | past | comments | ask | show | jobs | submit login

I summarize the article as "use OOP and design your classes well".



Has absolutely nothing whatever to do with OOP.

OOP, where it means anything at all, involves runtime selection of operations according to types organized in hierarchies.

TFA is about compile-time type compatibility enforcement.


Sorry, I was not clear enough.

I come from the C++ world, where it is natural that types are checked at compile time. And where you would use classes to implement the 'sophisticated types' the author suggested.

So in the ears of a C++ programmer the article says: design your classes well.


"Lean hard on your type system's capabilities".


Au contraire, types can be implemented with OO classes and operator overloading. Errors caught at compile time.


Classes can be OO. Or not OO. Makes no difference, at compile time.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: