-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A different approach for all delimiters ]}) #1
Comments
I actually did try this, but I found it to be less readable. |
Interesting ideas. I've been hacking on Plastic Editor for ClojureScript for past couple weeks. It is not in good shape yet. But I would like to experiment with inferred parenthesis at some point. I would like to experiment with use of full retina pixel resolution and power of CSS to somehow display this structural information, while editor would not force you to do delimiter baby-sitting. I'm open for (crazy) ideas :) |
@darwin I think there are some things that will give you a huge bang for the buck compared to my inferred paren thing. First is: any Another thing is to just check that the indent matches the structure of the code. I've found this to be difficult because people (including Rich) format their code... let's say "creatively", and Clojure contains way too little information to be able to know if |
@boxed my editor will be structural only, so that the user cannot run into unbalanced parens. My comment was more related to the display of the inherent structural information which is normally encoded as parens and the intent is communicated to the reader with line-breaks and indentation. I'm interested in new ways how display/communicate this information. Inferred parens is an approach which replaces some explicit parens with conventions (e.g. some of those map to line-break/indentation rules). Which I believe is promising and can lower cognitive load for a trained eye. But I would like to go beyond text representation. I have zillions of pixels at my disposal. I would like to map that information to some clever graphical representation. Maybe even in 3d. |
FYI, this is my two months old brain dump: Note that some technical stuff is not relevant anymore, I have switched to Atom and wrote a replacement for rewrite-cljs from scratch. |
Ah. Yea I agree that going beyond text mode is probably a good idea if you're going to go full on structural editor anyway. |
@boxed @darwin thanks for all your thoughts on this. enjoyed reading your brain dump as well. I've started some further work on this inferred paren idea here: https://github.com/shaunlebron/parinfer I hope to have a working demo soon |
working demo and explanations: http://shaunlebron.github.io/parinfer/ |
Awesome work. I'm 100% sure this is going to be #1 on HackerNews tomorrow :) Congratulations Shaun! |
Cool!
|
Thanks for making this experiment. Had a new idea to run by you:
This would allows us to remove most
]})
delimiters, not just)
:Not sure how practical it would be for writing, but I think it reads okay.
The text was updated successfully, but these errors were encountered: