6 ms·
WAT. Replace () with []. Seriously? This is the same sort of whinging that curly-bracket vs. significant whitespace folks go on about versus each other. How
by saidajigumi 13y ago
WAT. Replace () with []. Seriously? This is the same sort of whinging that curly-bracket vs. significant whitespace folks go on about versus each other.
How about y'all just programmer-up, admit that your visual recognition skills are trainable, and just get used to the syntax? Work on this a little bit, you'll just stop noticing language transitions. Yeah, there'll be a bit of standard library and language recalibration, but those become minor speed bumps. And the win in versatility is awesome.
A Tale: back in grad school the folks in the AI lab were heavy-duty Lispers. One of them was also the department's Emacs maintainer and made significant contributions upstream IIRC. You could flash a paragraph-sized chunk of Lisp their way and they'd immediately tell you whether and where any mismatched parens were. Having the editor do paren matching was nice but largely optional for this crowd.
tl;dr: you get good at what you do, and doing is often easier than you think.
- dennyabraham 13y agohttps://github.com/videlalvaro/clochure/#clochure---a-better-clojure https://github.com/videlalvaro/clochure/#clochure---a-better... It's not serious: this was an april fools' day joke from earlier this year.
- saurik 13y ago(Did you not catch that this was not just clearly a joke from the wording, but that they explicitly bolded the "April 1st" to make it more obvious?)
- saidajigumi 13y agoSigh. Obviously not. I'll just go step away from the computer and come back some time next... decade.
- Ygg2 13y agoDid you note the April 1st date. This might be an elaborate prank
- plorkyeran 13y agoIt's very clearly a joke. [] being easier to type than () is a decent point, though. I wonder if it'd be worth remapping your keyboard to swap them if you write a lot of lisp.
- chrismonsanto 13y agoI have (, [, and { on regular keys on my keyboard. Shifting the key yields the other pair: ), ], }. But since Emacs autocloses parens I rarely need to do this. edit: and it's excellent, I recommend it to all
- yonaguska 13y agoWhat keys did you swap if you don't mind me asking? I've been planning on doing this, but just haven't figured out the optimal location, especially for a laptop.
- chrismonsanto 13y agohttp://lib.store.yahoo.net/lib/thehumansolution/kinesis-advantage-dual-legend-dvorak-qwerty.gif http://lib.store.yahoo.net/lib/thehumansolution/kinesis-adva... - the | \ key next to ~ and left arrow is ( - { [ becomes [ - } ] becomes {
- batgaijin 13y agoI completely agree... I think it's ridiculous that it hasn't been switched in an implementation
- jeorgun 13y agoI have function LispOpts() inoremap [ ( inoremap ] ) inoremap ( [ inoremap ) ] endfunction autocmd FileType scheme call LispOpts() autocmd FileType lisp call LispOpts() in my vimrc, which gains me all the ease-of-typing I really want. I don't think it'd really be worth anything as drastic as actually creating a new keyboard layout. Then again, I don't use lisp all that often, so YMMV on that point.