Post #2430684
2026-04-28 17:14 UTC
@davidism@mas.to Nullable with default null, then implement handling for it in the form validation/coercion layer.
It's cleaner from a data model perspective and I tend to treat that as the ground truth most other things are based around.
I've seen another person in this thread advocate default empty string saying you otherwise *might* have two different "empty" values (if you don't distinguish between null and ''), but with that you *definitely* introduce a different empty value ('') based on type.
Replies (0)
No replies.