@AndrewTribone @wilkieii in C 0 either means success or false. It effectively means both false and true at the same time. What the fuck
-
-
Replying to @AndrewTribone
@AndrewTribone@wilkieii someone accidentally returns an integer + someone interprets it as bool + it's zero == vuln no Python is wrong1 reply 0 retweets 0 likes -
Replying to @AndrewTribone
@AndrewTribone in this case, you'd probably want an enumerated value and would need a system to enforce that. with a fail state?@bascule1 reply 0 retweets 0 likes -
Replying to @AndrewTribone
@AndrewTribone@wilkieii why do you have code that relies on the truthiness of integers in the first place?2 replies 0 retweets 0 likes -
Replying to @bascule
@AndrewTribone@wilkieii Ruby's approach forces you to not do that. It has repeatedly lead to bugs. Bad bugs. Security vulnerabilities2 replies 0 retweets 0 likes -
Replying to @AndrewTribone
@AndrewTribone@wilkieii here's the problem:pic.twitter.com/jsM0TjISE9
2 replies 0 retweets 0 likes
@AndrewTribone @wilkieii Python's boolean equivalency looks more like this than Ruby's does. Ruby's logic is simple:pic.twitter.com/5nnVNlLXGk
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.