Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

support records as functions #3

Open
mndrix opened this issue Feb 23, 2013 · 1 comment
Open

support records as functions #3

mndrix opened this issue Feb 23, 2013 · 1 comment

Comments

@mndrix
Copy link
Owner

mndrix commented Feb 23, 2013

library(record) supports terms with named arguments. Allow one to use a record as a function mapping an argument name to its value. Like this

write(Person$name).

Which expands into something like this

person_name(Person, X),
write(X).
@mndrix
Copy link
Owner Author

mndrix commented Jun 7, 2013

This requires issue #2 to be finished first since we can't know what Person represents until run time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant