Skip to content
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

template engine #298

Open
nineties opened this issue Apr 19, 2014 · 1 comment
Open

template engine #298

nineties opened this issue Apr 19, 2014 · 1 comment

Comments

@nineties
Copy link
Owner

No description provided.

nineties pushed a commit that referenced this issue Apr 20, 2014
@nineties
Copy link
Owner Author

Following kind of template-instantiation is very common.

f(x, y, z) := {
    code := 'Foo{x, y, z}
    code['y -> y, 'z -> z]
}

I propose a macro instantiate to write it as below.

f(x, y, z) := instantiate(Foo{x, y, z}, y, z)

nineties pushed a commit that referenced this issue Apr 21, 2014
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