TIL: Value Classes
Value classes are a super neat way to improve type safety in your code without paying the price of object creation at runtime. In many programming languages, especially on the JVM, it’s easy to pass around raw primitives or strings like IDs, tokens, etc. But doing that often leads to bugs like accidentally swapping a…