Bozhidar Batsov
Bozhidar Batsov
Yeah, that's a fair point. I guess to me it was obvious you shouldn't omit mandatory parentheses. :D And, of course, not all DSLs are the same and rely heavily...
Agreed. I was under the impression that acronyms are typically presented as one work in the file name. I've never seen a file name like `some_x_m_l.rb`, so I'd advice against...
I guess we should mention this in the guide as well.
I agree with @danmichaelson that this looks a bit weird, especially to people coming from other languages. I'd certainly encourage people to declare variables in a more obvious fashion. :-)
No objections from me. It'd be nice to add some lint cop in RuboCop flagging such issues.
Yep, I agree with @fishermand46. There's nothing special here - just a failure, we've obviously envisioned.
I'm fine with adding more examples. PRs welcome! :-)
I don't get this part at all: ``` # bad - non explicit array name results = electric_appliance.process! results.each { _1.taste } ``` Seems like an OK usage to me,...
Interesting question. I think @khmariem is right in principle, but in practice I don't think I've seen many assignments in ternary ops. I'd love to hear what others think about...
I'd mention the version with space didn't work in Ruby 1.9 when this syntax was introduced, so a lot of code was written without a space and probably we should...