Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I imagine some "refactor" later, some new programmer, forced by new requirements, changing this with:
if ( $full == 'empty') -
@deviloper fortunately we're dumping this shit project soon and writing new version from scratch
-
@kescherRant I actually unironically do that sometimes on C# when I need a "maybe" value.
-
@Lor-inc if only there was some magigal construct in C# that would allow you to do just that semantically correct...
https://docs.microsoft.com/en-us/... -
@kacper3w Can you make one state of an enum mean true, the other false, and the third throwing a compiler error?
Related Rants
Why use boolean for a simple flag when you can use a fucking nullable string? Kurwa no.
rant
to null or not to null
php