2 ms·
In a language with a modern type system it doesn't need to be a language-level feature. I use Scala and any use of unadorned String will be picked up in code re
by lmm 11y ago
In a language with a modern type system it doesn't need to be a language-level feature. I use Scala and any use of unadorned String will be picked up in code review, because generally we prefer to use some specific type that says what it represents.
- jfoutz 11y agoIt's amusing the solution you present is code review. I'd bet naked strings never get that far, because your business libraries all expect CustomerName or whatever.
- lmm 11y agoSure, but occasionally new programmers will do a bunch of work with a String and and only wrap it as a CustomerName before making a library call.