Gosh darn ruby's 0 being truthy and python's 0 being falsey. (this probably sounds ridiculous to non-programmers heh)
-
-
Replying to @AndrewTribone
@AndrewTribone@wilkieii Python does it the C way. C is confused as shit about how to represent booleans as integers. Ruby does it right1 reply 0 retweets 0 likes -
Replying to @bascule2 replies 0 retweets 0 likes
-
Replying to @AndrewTribone
.
@AndrewTribone@wilkieii trying to apply boolean semantics to integers literally causes security vulnerabilities: https://speakerdeck.com/tarcieri/thoughts-on-rust-cryptography?slide=25 …2 replies 3 retweets 3 likes -
Replying to @AndrewTribone
@AndrewTribone@wilkieii vulnerabilities seen in both OpenSSL and GNUTLS this year, but it speaks generally to C1 reply 0 retweets 0 likes -
Replying to @AndrewTribone
@AndrewTribone there are tests, but there is also the concept of a type system that works for you instead of against :)@bascule1 reply 0 retweets 0 likes
@AndrewTribone @wilkieii or a real type system where you can't use integers in a boolean context
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.