[MacRuby-devel] Weird behaviour for a weird line of code

Eloy Duran eloy.de.enige at gmail.com
Thu Nov 18 02:02:35 PST 2010


> if x = logical_statement then
>  do_something(x)
> else
>  do_something_else
> end
> 
> and whether you're coding in ruby, C/++, or whatever... it is almost always considered bad form. Avoid it not only for the reasons I mentioned before, but also to avoid the beat downs you'll get whenever you ask for our community's help. I cannot guarantee your safety otherwise.

I see no problem with this, as long as you know what you’re doing (which is with almost anything). Nor have I witnessed a community where ‘beat downs’ are acceptable, it’s certainly not this ML. YMMV.


More information about the MacRuby-devel mailing list