Skip to content

Add a test that shows that 'make' silently ignores unknown fields #446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
masak opened this issue Mar 29, 2025 · 0 comments
Open

Add a test that shows that 'make' silently ignores unknown fields #446

masak opened this issue Mar 29, 2025 · 0 comments

Comments

@masak
Copy link
Owner

masak commented Mar 29, 2025

When using make on some declared template, leaving field names out is fine, and initializes them to nil.

Language::Bel 0.63 -- msys.
> (tem foo x nil y nil)
((x lit clo nil nil nil) (y lit clo nil nil nil))
> (make foo)
(lit tab (x) (y))

However, using a field name which was not part of the tem declaration means that these are silently dropped.

> (make foo x 1 y 2 z 3)
(lit tab (x . 1) (y . 2))

Add a test to that effect.

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

No branches or pull requests

1 participant