I hate that 0 is truthy in #Ruby.
I'm sure there's a thousand reasons why I'm the one with the wrong opinion but I'll die on this hill. Trips me up all the time.
I hate that 0 is truthy in #Ruby.
I'm sure there's a thousand reasons why I'm the one with the wrong opinion but I'll die on this hill. Trips me up all the time.
@akaiiro LOL, don't be like that.
Here's an example of where it would be handy.
I get why this doesn't and shouldn't work...but javascript wouldn't need a block here :)
@akaiiro omg you have this exact behavior (essentially) in your profile
{ }.is_empty? #==> true
We were always meant to have this disagreement :)