3 ms·
Banish state-mutating methods from data classes
- Khelavaster 3y agoThis article is sort of confused on what "data type" means. Most people who say "data type" accept that it can have methods scopes to that data type: setter logic, conversion methods, and whatever's domain-appropriate.