Just spent 20 minutes pulling my hair out because Ruby's "and" has lower operator precedence than assignment to variable!

#programming #nerdy #ruby

Follow

@fuxoft
This is why I never skip a perentecise.
Even though, it ends up being a mess of funding the missing/redundant ones. :ablobcool:

@LukeAlmighty Yeah, but my life so far hasn't prepared me for the possibility that "x = a and b" is not "x = (a and b)" but instead "(x=a) and b".

@fuxoft
Yeah, 20 minutes is an insane speed when it comes to this bullshit.

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.