Hacker News new | ask | show | jobs
by shadowgovt 1319 days ago
As with all other types of data: the right approach is for model and presentation to be separable concerns.

We're struggling with the wrong problem if we aren't asking why the editor can't treat blocks as entities that are displayed however we want.

2 comments

  > why the editor can't treat blocks as entities
That might with with C, but won't work with e.g. Python.
Python has syntactic blocks as well, and editors totally can (and do) muck around with their formatting. I don't see any reason why they couldn't handle customizable indentation.