Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lolive
36 days ago
|
parent
|
context
|
favorite
| on:
Use Your Type System
Primitive object types in Java (String, Float, …) are final. That blocks you from doing such tricks, as far as I understand.
viktorcode
36 days ago
[–]
The idea is to just wrap them in a unique type per intended use case, like AccountID, SessionID, etc. and inside the may contain a single field with String.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: