Re:Modern PHP without a framework
by paulddraper on Sunday April 01, 2018 @03:43PM
(#16730037)
See the Option/Maybe pattern, which uses sum types rather than unions or sentinel values.
https://www.lucidchart.com/techblog/2015/08/31/the-worst-mis...
Or would you propose sending a boolean to indicate null as well as a string in a data type?