Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because usually the code to handle it is not mine and it expects to go through the list in forward order. Nobody makes APIs that take a list of, idk, files to delete and lets you pass in a parameter that is “please actually run your for loop over this in reverse”. They expect you to flip your array before you hand it in.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: