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

>This is essentially the point of view of functional programming and category theory.

No, it isn't. This is the point of every language philosophy, you will find OOP and procedural people arguing exactly this. Correctly defining your data types is important and applicable in every language and every paradigm.

The view of functional programming is that objects shouldn't be transformed and that mutation should be avoided. That is unrelated.

The point of category theory is that different patterns of relationships are common across mathematical fields. Which is totally unrelated and has nothing to do with anything discussed here. Maybe you meant type theory? But that also has no relation.



Nope I meant category theory

> Maybe you meant type theory? But that also has no relation.

Hmm? Category theory and type theory have a lot of close ties. For example see the Nlab page on their connections https://ncatlab.org/nlab/show/relation+between+type+theory+a...


OP is saying neither of those relate to the problem. Not that they don't relate to each other.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: