Y
Hacker News
new
|
ask
|
show
|
jobs
by
awef
4848 days ago
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!
1 comments
tsm
4848 days ago
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.
link
awef
4848 days ago
Valid point! Can't believe it didn't occur to me ;)
link
Compare:
With: (Where there used to be a bar() call before baz().) The first version makes it look like the `def foo():` was somehow removed.