Discussion about this post

User's avatar
Wolfgang Klinger's avatar

I don't quite get how you want to prevent "accidental bugs" by just introducing value objects. Another module/API or another developer could still pass the wrong primitive values (from a different unit of measure) to create the object. The naming is better and more obvious of course.

Expand full comment
1 more comment...

No posts