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

Rule-based overriding of default actions #18

Open
ianbollinger opened this issue Sep 1, 2015 · 0 comments
Open

Rule-based overriding of default actions #18

ianbollinger opened this issue Sep 1, 2015 · 0 comments

Comments

@ianbollinger
Copy link
Owner

It's necessary for the author to be able to write something like:

object "foo" "bar"
|> insteadOf taking (\args -> {- replacement action -})

Other comibinators would have names such as "before" and "after".

I'm a bit weary about doing this, however, because the action name would need to be indexed by string to be fully extensible (documenting this could be ameliorated by making a constant for each one.) Additionally, the user would also have to know the format of [args] being passed into the given action, which would require even more documentation for the author to get correct.

@ianbollinger ianbollinger changed the title Rule-based overloading of default actions Rule-based overriding of default actions Sep 1, 2015
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