Re: Portable S-expressions
Peter Bex 20 Apr 2021 12:22 UTC
On Tue, Apr 20, 2021 at 08:09:27AM -0400, John Cowan wrote:
> In order to evaluate this idea, we need a list of Lisps that the syntax is
> to be portable to. For example:
>
> 1) Vertical bars are not portable to R6RS systems
>
> 2) #(...) vector syntax is portable to all Lisps I know of except Elisp
> (square brackets) and Interlisp (no syntax).
What about Clojure, Carp and Janet? They use [] for vectors/arrays
like Elisp, and #() even means something completely different in
Clojure: syntax for anonymous functions a la "cut"/"cute".
It might be worthwhile to also take a look at EDN, even though it is
woefully underspecified.
Cheers,
Peter