Comment

Comment by aaviran

I strongly agree.

Code is read from top to bottom, and finding out that a method uses a block after reading through most of it, is confusing, whereas `&block` in the method signature clarifies that this method will do something with a block.

The performance hit, as bad as it may be, is not something that should be a concern in many programs. After all, you are using Ruby...

parent aaviran 11 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton