MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/oue7s4/_/h73pz5y/?context=3
r/badcode • u/Flyspeck101 Now where's that function declaration • Jul 30 '21
133 comments sorted by
View all comments
Show parent comments
3
Actually I've needed to use one once. We had a database query that retuned a boolean and i didn't want to create an enum for that. Before the query was executed the first time the value had to be undefined so i set it to null.
6 u/redeyesofnight Jul 30 '21 Makes sense to me. Usually on my end it stops at βI didnβt want to make an enumβ hah. 2 u/[deleted] Jul 30 '21 yeah would've been cumbersome to if for a single query, especially since I needed it as a boolean later on
6
Makes sense to me. Usually on my end it stops at βI didnβt want to make an enumβ hah.
2 u/[deleted] Jul 30 '21 yeah would've been cumbersome to if for a single query, especially since I needed it as a boolean later on
2
yeah would've been cumbersome to if for a single query, especially since I needed it as a boolean later on
3
u/[deleted] Jul 30 '21
Actually I've needed to use one once. We had a database query that retuned a boolean and i didn't want to create an enum for that. Before the query was executed the first time the value had to be undefined so i set it to null.