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

quoted encoding for Enum[] in Type::Tiny via EnumQ[] #12

Merged
merged 1 commit into from
Aug 17, 2020

Commits on Aug 17, 2020

  1. quoted encoding for Enum[] in Type::Tiny

    This is a better fix for perl rt 129729 (we can actually XS-ify this
    sub now) and fixes the bug in perl rt 133141 which is much harder to
    work around.  We define a new encoding for "Enum" which has QUOTELIKE
    strings as parameters.  This lets us unambiguously handle any content
    in strings.  Otherwise we have some serious issues handling spaces and
    have some other issues when Type::Parser tries to parse a Tuple[Enum[...]]
    
    We'll have some slightly complicated checks in place for now:
    
    old Type::Tiny, old Type::Tiny::XS - old encoding, blows up on spaces
    old Type::Tiny, new Type::Tiny::XS - old encoding, blows up on spaces
    new Type::Tiny, new Type::Tiny::XS - new encoding, maximum XS-ification
    new Type::Tiny, old Type::Tiny::XS - old encoding, skip XS in some cases
    aeruder committed Aug 17, 2020
    Configuration menu
    Copy the full SHA
    4c5607c View commit details
    Browse the repository at this point in the history