drogon icon indicating copy to clipboard operation
drogon copied to clipboard

Get rid off Null

Open albaropereyra22 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. It would be nice to get ride of null. Null is an ugly data type some developers like to avoid to minimize bugs as stated in the following book Programming Scala: Scalability = Functional Programming + Objects by Dean Wampler and Alex Payne Describe the solution you'd like -1,0 out, or bool to false everything including settings like the following: //string value of SameSite attribute of the Set-Cookie HTTP respone header //valid value is either 'Null' (default), 'Lax', 'Strict' or 'None' "session_same_site" : "Null",

Describe alternatives you've considered Change the values so that -1,0, or false can be used.

albaropereyra22 avatar Aug 25 '23 06:08 albaropereyra22

Thanks for your feedback.

Personally I see no big reasons to go away from nullptr in modern C++ (in the general case), although I don’t know what the other active maintainers think.

The reasoning may be different in other languages like Scala (which I’m no expert in, but I know a similar sentiment from Swift development where you usually use optionals, and result wrappers).

rbugajewski avatar Aug 25 '23 08:08 rbugajewski