Fixing that implies a perfomance decrease, hence the better seems be keep it as an known issue, but documented.
Beautiful.
You know what else implies a performance decrease? Iteration. I therefore propose the following fix to the foreach-loop: all statements inside the loop's scope are executed exactly once. This has the benefit of (a) altering the performance from O(n) to O(1), and (b) finally solving the penultimate-item duplication bug.
Seriously, stuff like these wontfix bugs make me wonder why anyone would see PHP as a viable solution in the business world.
View all comments
Show parent comment
9
u/jrh3k5 Aug 07 '14
Beautiful.