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

M4I::Types - Add special fallback to dispatch_declare() #62

hkoba opened this issue May 3, 2019 · 0 comments


Copy link

commented May 3, 2019

MOP4Import::Types works fine to declare types. But in some case of code generation like YATT::Lite::LanguageServer::Protocol, I want to declare other things like constants in a single call of dispatch_pairs_as_declare.

So, let's introduce a special syntax for such requirements. If name part of the pair is undef, just call dispatch_declare for it's value part. ie:

use MOP4Import::Types
 MyType => [[fields => qw/foo bar baz/]],
 undef() => [[constant => X => 'myX']],

@hkoba hkoba added the enhancement label May 3, 2019

@hkoba hkoba self-assigned this May 3, 2019

@hkoba hkoba closed this Jul 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.