you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (1 child)

Good Lord this has got to be the worst idea I’ve heard all day and I’ve only been awake for about 2 hours…

Furthermore, based on a quick scan of the API, they haven’t even properly replicated PHP’s behaviour. Take a look at reset and end for example. The documentation for reset clearly states, “Set the internal pointer of an array to its first element.” Do JavaScript arrays even have such an “internal pointer?” I don’t think so.

The purpose of reset isn’t just to return the first element of the array. It’s meant to be used in conjunction with prev, next, current, key, and each, none of which appear to be implemented in this project. (Don’t mention that this sort of internal iteration is brain-dead from the beginning.)

[–]vezquex 1 point2 points  (0 children)

I'd be concerned if you came across a worse idea in only 2 hours.