top | item 47094462

(no title)

grimgrin | 9 days 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

discuss

order

cpeterso|9 days ago

No 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)

dunham|8 days ago

I'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 )

Andrex|8 days ago

In high school I tried spec'ing a lang that excluded shift key usage... fun times.

shawn_w|8 days ago

There'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.