Re:Is it time to stop using sentinel values for null / “NA” ...
by deathanatos on Monday June 05, 2023 @05:48PM
(#36204351)
I mean … CSV hasn't a notion of Option, or Int, so you'd have to define your own.
But you don't have to use what the article calls a "sentinel value" (i.e., you don't have to dedicate -2489391827 as "null") to do it: simply "null" for None/Null/Nothing, and the integer for Some(<int>) / Just int would work.
But you don't have to use what the article calls a "sentinel value" (i.e., you don't have to dedicate -2489391827 as "null") to do it: simply "null" for None/Null/Nothing, and the integer for Some(<int>) / Just int would work.