News for hackers. Stuff that matters.
Re:Names are not type safety by IggleSniggle on Monday November 02, 2020 @11:52AM (#24970143)
This isn’t necessarily so, though. I don’t see why unchecking the checkbox can’t create an Option<T> that is passed (int value, bool false). It just means that you accept this as a valid construction state, and that it must therefore be handled.

I admit that I might be missing something fundamental to this discussion.

Re:Names are not type safety by nyanpasu64 on Monday November 02, 2020 @04:04PM (#24973336)
I meant to say "saving application configuration as Option<int> (either int value or None) is easier for the application to read correctly then a tuple (int value, bool present)."