Navigation Menu

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

Support for Inline::Filters::* plug-ins #34

Merged
merged 1 commit into from Jan 1, 2015

Conversation

hoytech
Copy link
Contributor

@hoytech hoytech commented Dec 31, 2014

filters => [ [ Ragel => '-G2' ] ]

is much nicer than

filters => [ sub { require Inline::Filters::Ragel; Inline::Filters::Ragel::ragel('-G2')->(@_) } ]

@mohawk2
Copy link
Collaborator

mohawk2 commented Dec 31, 2014

I like the look of this. While your mind is on the subject, what do you think of the idea of an API for Inline::C addins slightly more generally, so that eg Inline::Filters and Inline::Struct don't need specific support within Inline::C itself? Something like:

use Inline C => DATA => addins => [ qw(Inline::Filter) ] => filters => [ [ Ragel => '-G2' ] ];

Possibly the addins might instead be an Inline keyword/piece of functionality.

@hoytech
Copy link
Contributor Author

hoytech commented Dec 31, 2014

I think a generic add-in system like that would make sense although I haven't looked closely at much of Inline other than the filtering stuff so I wouldn't feel qualified to design such a system.

@ingydotnet
Copy link
Owner

@hoytech, please change C<…> to in the .swim patch.

@ingydotnet ingydotnet merged commit 054f133 into ingydotnet:master Jan 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

Successfully merging this pull request may close these issues.

None yet

3 participants