3 ms·
Wow. Could it also work with JavaScript?
by l1ambda 11y ago
Wow. Could it also work with JavaScript?
- chrisoakman 11y agoNot really due to the fundamental difference between Lisp and JavaScript syntax. You could borrow the idea of indentation inferring function scope structure and make a plugin that would modify JavaScript syntax accordingly, but I'm not sure that would even be desirable when writing JavaScript. Parinfer is made possible by Lisp's unique syntax.
- lemming 11y agoCheck out Kent Beckman's Prune for ideas along this line: https://www.facebook.com/notes/kent-beck/prune-a-code-editor-that-is-not-a-text-editor/1012061842160013 https://www.facebook.com/notes/kent-beck/prune-a-code-editor.... It's not quite the same since it's more like an enforced paredit, but it contains a lot of similar ideas and also enforces indentation.