News for hackers. Stuff that matters.
Re:A decent VS Code and Ruby on Rails setup by execat on Thursday February 22, 2024 @12:24AM (#39463549)
> A single-line block uses { }, but when it's multiple lines, it has to be changed to "do" and "end" - why?

It doesn't have to be changed. {} work fine on multi-line blocks also. It's probably your linter that's forcing you to change them to do... end blocks: https://try.ruby-lang.org/playground/#code=3.times+%7B%0A++p...

There are no comments on this comment yet.