Just spent 20 minutes pulling my hair out because Ruby's "and" has lower operator precedence than assignment to variable!
#programming #nerdy #ruby
@fuxoft This is why I never skip a perentecise.Even though, it ends up being a mess of funding the missing/redundant ones.
@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.
Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.
@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".