Skip to content

refactor: rename macro helpers from syntax-* to short Lisp names - #152

Merged
thsfranca merged 1 commit into
mainfrom
refactor/short-macro-helper-names
Mar 21, 2026
Merged

refactor: rename macro helpers from syntax-* to short Lisp names#152
thsfranca merged 1 commit into
mainfrom
refactor/short-macro-helper-names

Conversation

@thsfranca

Copy link
Copy Markdown
Owner

Summary

  • Rename all 7 macro helper functions to short Lisp-traditional names: list, cons, first, rest, symbol?, list?, concat
  • Update all references in macro_expand.rs (evaluator + tests), interpreter.rs (integration tests), lib.rs (integration tests), and examples/macros.vx
  • These functions exist only in the compile-time AST evaluator and cannot conflict with user code

Test plan

  • All 546 tests pass
  • cargo clippy -- -D warnings clean
  • No syntax- prefixed names remain in source or examples

Rename all macro helper functions to follow Lisp convention:
syntax-list → list, syntax-cons → cons, syntax-first → first,
syntax-rest → rest, syntax-symbol? → symbol?, syntax-list? → list?,
syntax-concat → concat.

These functions exist only in the compile-time AST evaluator within
macro_expand.rs and cannot conflict with user code or runtime builtins.
@thsfranca
thsfranca enabled auto-merge (squash) March 21, 2026 23:06
@thsfranca
thsfranca merged commit bbd07ca into main Mar 21, 2026
2 checks passed
@thsfranca
thsfranca deleted the refactor/short-macro-helper-names branch March 21, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant