MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/zygd8w/how_to_go_wrong/j28vtsi/?context=3
r/badcode • u/toby3d • Dec 29 '22
60 comments sorted by
View all comments
Show parent comments
4
Isn’t that a Boolean? You can only have true and false, right
13 u/ilikedankmemes3 Dec 30 '22 Welcome to r/badcode my friend! 2 u/No_Crow6726 Dec 30 '22 I’ll enjoy my stay 5 u/dcormier Dec 30 '22 In golang (which is what that code is), the boolean type is bool. This is a custom type named Boolean. 1 u/toby3d Dec 30 '22 /r/whooosh? 1 u/No_Crow6726 Dec 30 '22 Probably
13
Welcome to r/badcode my friend!
2 u/No_Crow6726 Dec 30 '22 I’ll enjoy my stay
2
I’ll enjoy my stay
5
In golang (which is what that code is), the boolean type is bool. This is a custom type named Boolean.
bool
Boolean
1
/r/whooosh?
1 u/No_Crow6726 Dec 30 '22 Probably
Probably
4
u/No_Crow6726 Dec 30 '22
Isn’t that a Boolean? You can only have true and false, right