Saving the run lengths in a temporary does help readability. The only nit I have with the otherwise good updated version is that it destroys @letter from within an expression. In this case, it's what you want, but it risks a "Hey, what happened to my letters?!?" if someone else tries to reuse the snippet later.
In reply to Re: Re: I wrote some clever code - can the comment "defuse" it? (stab at restructuring)
by dws
in thread I wrote some clever code - can the comment "defuse" it?
by Aristotle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |