miniblog.

← Back to all posts
14
I rather like how Scheme treats boolean literals (#f and #t) as syntactically distinct from normal variables. The syntax feels tidier than overloading variable names. (Though I'm still amused that 0x12 is a valid variable name in emacs lisp!)

4 Comments

I never thought of that! I’m so used to Scheme variants like Chicken where you can define #r or #j or whatever. (Except to use or reference them in any meaningful way you need to use delimiters so you still can’t (display #r), it’s (display |#r|).)
@wilfredh I’ve been playing with Lisp on the Acorn Electron lately. There are only symbols and 16-bit ints. Not even strings. If you use an undefined variable it evaluates to the symbol UNDEFINED so like if you do (SAVE myprog) and forget to quote it will just happily save a file called “UNDEFINED”. fun!
@wilfredh Oh that looks really fun! A Lisp language without lists? Hehe, interesting! I was mostly trying to do some of #AdventOfCode with it. It’s really slow and quickly runs out of memory though so it’s a bit tricky. It doesn’t have a code editor and you can’t write comments, you just sort of directly manipulate the lisp objects in memory with a funky thing to go to the cdr or the car of the current object then replace what you are looking at.