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

Awesome work! Cheers airblade. One nitpicky thing though, why do you use "_" and not "-" for removed lines? Can't see why you wouldn't want it vertically centered!


Removed lines happen between existing lines, so using an underscore makes it look like that.

Compare:

    25  - def foo():
    26       baz()
With:

    25  _ def foo():
    26       baz()
(Where there used to be a bar() call before baz().) The first version makes it look like the `def foo():` was somehow removed.


Valid point! Can't believe it didn't occur to me ;)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: