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

Add a PermissiveRespondTo extension for Mashes #499

Merged
merged 1 commit into from Nov 18, 2019

Commits on Nov 17, 2019

  1. Add a PermissiveRespondTo extension for Mashes

    By default, Mashes don't state that they respond to unset keys. This
    causes unexpected behavior when you try to use a Mash with a
    SimpleDelegator.
    
    This new extension allows you create a permissive subclass of Mash that
    will be fully compatible with SimpleDelegator and allow you to fully do
    thunk-oriented programming with Mashes.
    
    This comes with the trade-off of a ~19KB cache for each of these
    subclasses and a ~20% performance penalty on any of those subclasses.
    michaelherold committed Nov 17, 2019
    Copy the full SHA
    15ea67e View commit details
    Browse the repository at this point in the history