|
|
|
|
|
by em-bee
2546 days ago
|
|
very good point. there is certainly room for improvement. a lot of room actually. im fact it irks me every time if i have to change the indentation of code already written just because i changed the nesting depth. it causes changes in lines of code that haven't actually changed, and messes up the diff as well as things like git blame... we can imagine a solution by looking at lisp for example. its syntax makes it possible to store the code without any indentation at all. in fact even without any linebreaks (let's ignore comments for now) and rely entirely on an editor to present the code in a readable format. this should be possible with other languages too. especially if we design them with that goal in mind. |
|