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

Paper tape is why ASCII DEL is 0x7F — it's the only idempotent punch.

And why typing DEL is properly a forward delete operation: it eliminates the character under the cursor — converting it to a DEL, to be ignored when reading the tape — and (like any other punch) advances to the next. (I blame the VT220 for mucking this up and leading to endless confusion.)



All punches are idempotent, in that punch_x(original) = punch_x(punch_x(original)). ASCII DEL is the only punch that acts as a constant endomorphism.




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

Search: