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

Highlighting different levels of nesting is mainly useful in situations in which nestings are processed in different contexts, and are similar to each other. For instance, nested backquotes in Lisp.

Color could tell you whether your

  ,',',var
has the right number of quotes and unquotes to refer to the correct evaluation level/context where var exists.

In run of the mill blub code not doing any metaprogramming, indentation is more than visible enough for indicating levels of nesting.



Indentation is sufficient assumes that the code is correctly indented and/or you have not made errors like leaving a " off.


We've automated the former decades ago, and regular syntax coloring shows unclosed literals.




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

Search: