News for hackers. Stuff that matters.
Re:How we failed, then succeeded, at migrating to TypeScript by eropple on Sunday October 13, 2019 @06:37PM (#21243684)
I don’t hate nominative typing but TypeScript has definitely coached me towards thinking more about data and operations on data. It does a lot to encourage you to move away from the traditional OOP patterns that make most people dunk on Java.

If I had to directly compare the two I think nominative typing is superior only in the case where you have two identically-shaped (down to the property name) classes that have different semantics. I feel like if you are in this situation you should take a very large step back and re-think your decisions.

There are no comments on this comment yet.