4 ms·
idk how I haven't crossed a lisp with square brackets but dang I am sorta stunned at how I've never even envisioned it? thanks
by grimgrin 8mo ago
idk how I haven't crossed a lisp with square brackets but dang I am sorta stunned at how I've never even envisioned it? thanks
- cpeterso 8mo agoNo shift key needed for square brackets! Curl was a proprietary Lisp that {curly brackets} and was designed in the 1990s to build web applications. https://en.wikipedia.org/wiki/Curl_(programming_language) https://en.wikipedia.org/wiki/Curl_(programming_language)
- dunham 8mo agoI've always found OCaml's (* ... *) comments annoying, because it needs shift for both characters. But I suspect it's easier to type on a french keyboard. Knuth solves the bracket issue by redefining his keymap to swap () with [] and + with = (macos keymap files found at the bottom of this page: https://www-cs-faculty.stanford.edu/~knuth/programs.html https://www-cs-faculty.stanford.edu/~knuth/programs.html )
- Andrex 8mo agoIn high school I tried spec'ing a lang that excluded shift key usage... fun times.
- shawn_w 8mo agoThere's a few lispy languages that support using square brackets as an alternative to parens. Racket even has curly braces too. The above really reminds me of tcl, though, which uses square brackets to force evaluation of the command they wrap.
- syene 8mo agoKeyboards of early MIT systems[1] and Lisp Machines[2] had brackets (parentheses) and square brackets on the same key where square brackets and curly brackets are on modern keyboards. 1: http://xahlee.info/kbd/sail_keyboard.html http://xahlee.info/kbd/sail_keyboard.html 2: http://xahlee.info/kbd/space-cadet_keyboard.html http://xahlee.info/kbd/space-cadet_keyboard.html