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

> This may seem like an amateur-level programming mistake, but in reality, it's much easier to write straightforward code for each target than writing unified one that covers all the details and corner cases of all supported targets simultaneously.

This is one of the reasons sum types are so critical in my opinion. They let you write code in that style, where OOP forces you to make everything look kinda the same.




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

Search: