Re:Ruby delights built into the language
by dragonwriter on Wednesday December 21, 2022 @02:26AM
(#34077676)
> Debug? You don’t.
If by “debug” you mean “step through with a debugger” (at least Ruby’s standard debugger), sure (except at the steps with blocks, which you can easily insert as noops as needed with #tap). But, honestly, I almost never resort to using a debugger in practice, so minor variations in where breakpoints can be set aren’t something I see as a big deal.
> and almost always makes you “unroll” it into its boring, “classic” form.
If by “debug” you mean “step through with a debugger” (at least Ruby’s standard debugger), sure (except at the steps with blocks, which you can easily insert as noops as needed with #tap). But, honestly, I almost never resort to using a debugger in practice, so minor variations in where breakpoints can be set aren’t something I see as a big deal.
> and almost always makes you “unroll” it into its boring, “classic” form.
No, it never makes you unroll it in Ruby.