Better HN
topnewbestaskshowjobs
Log inSign up

beluchin

1 karma · joined Jan 17, 2025 (1y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

Types are sets e.g. the Integer type is the set of all the integer values.

comment 1y ago · link · parent

> Static classes are fine for those functions if ...

> there is only one reasonable implementation of the function

this. In the absence of polymorphism, a static function is just fine. I am in the phase of avoiding object notation in preference of functional notation whenever possible. I leave OO notation to cases where, for example, there is polymorphism as the functional wrapper will add little to no value.