Skip to content

Verifier + interpreter: allow builtins as HOF args#165

Merged
danieljohnmorris merged 2 commits into
mainfrom
fix/builtins-as-hof
May 11, 2026
Merged

Verifier + interpreter: allow builtins as HOF args#165
danieljohnmorris merged 2 commits into
mainfrom
fix/builtins-as-hof

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Every persona that wanted fld max ps 0 or map abs xs hit undefined variable 'max' and had to write a 40-token wrapper. Added a verifier-promotion allowlist of pure builtins (abs/flr/cel/rou/min/max/mod/sum/avg/trm/str/num/jdmp/len) so their names resolve as function values in HOF arg position. IO and polymorphic builtins stay rejected with clear errors. Cross-engine tests + example.

tests + example pinning the HOF support.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@danieljohnmorris danieljohnmorris merged commit e5d6020 into main May 11, 2026
5 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/builtins-as-hof branch May 11, 2026 21:25
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