in reply to Re: The cognitive load of generated code
in thread The cognitive load of generated code
Worse, it's shortened to empty list. Returning an empty list from a sub expected to return a scalar can have very weird effects.
length $f <= $m is awful too. foo $f <= $m normally means foo( $f <= $m ), so seeing length $f <= $m raises red flags, adding to cognitive load. (It's valid, but only because length breaks operator precedence.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The cognitive load of generated code
by Anonymous Monk on May 19, 2026 at 07:13 UTC |