8 ms·
You don't append in front, you prepend
by seag 14y ago
You don't append in front, you prepend
- jacquesm 14y agoWhy does Google append their JSON responses to while(1); ?
- comex 14y agoThat carries the implication "why not simply return 'while(1)'?".
- knowtheory 14y agoI'm a bit perplex why you've chosen to pedantize this particular word choice since "prepend" itself is a portmanteau derived by mashing "pre" and "append" together. Perhaps the trio of "affix", "prefix" and "suffix" might be more useful, since there is no "postpend" or "suppend" to accompany "append" and "prepend". Regardless, the Google ngram chart of these various words is pretty interesting: http://books.google.com/ngrams/graph?content=prepend%2Cappend%2Cprefix%2Caffix%2Csuffix&year_start=1800&year_end=2000&corpus=15&smoothing=3&share= http://books.google.com/ngrams/graph?content=prepend%2Cappen...
- zem 14y agoand what do you see as the difference between appending in front and prepending?
- jeremysmyth 14y agoNothing, if you're prepared to say you can pop something onto a stack and push it off.
- zem 14y agowhat about a deque? the push-pop/shift-unshift distinction is unnecessarily confusing when something doesn't have stack semantics.
- rmc 14y agoNo, you prefix.
- matthuggins 14y agoDon't call seag a prefix. :(