This repository was archived by the owner on May 24, 2023. It is now read-only.
This repository was archived by the owner on May 24, 2023. It is now read-only.
Consider pointers to string (Int, etc) rather than NullString (Int, etc) #32
Closed
Description
Using sql.NullString as a property type leaves a bad taste in the mouth when designing structs, as it seems to tightly couple SQL to models that may generally be independent of SQL.
I've found that using *string
(*int
, etc) is more palatable. With automatic dereferencing, it hasn't been much of an issue. I'm curious re: your take on this, and re: your thoughts on including it in the section on NULL values.
Metadata
Metadata
Assignees
Labels
No labels