Add self-hosted standard library (and, or, cond, when, let*) #61
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
seq-lisp-2-backport
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/seq-lisp#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Create a self-hosted standard library that defines common forms as macros in SeqLisp itself, following seq-lisp-2's minimal-kernel philosophy.
Motivation
During the LSP document symbols work, we discovered that
oris not a builtin — we had to write verbose nestedifchains like:With a self-hosted stdlib, this becomes:
seq-lisp-2's design philosophy is a minimal Seq kernel with higher-level forms defined in Lisp. This is elegant — fewer Seq builtins to maintain, and users can read/modify the standard library.
Proposed Forms
Future additions could include
let*, variadicand/or,case, etc.Scope
lib/stdlib.slispwith core macrosNotes
This is the highest-value, lowest-risk idea from seq-lisp-2. It directly addresses pain points and doesn't require touching the Seq evaluator.
Inspired by seq-lisp-2's stated goals for self-hosted
let,cond,and,or,map,filter,fold.