Skip to content

Instantly share code, notes, and snippets.

@autarch
Last active December 5, 2016 21:01
Show Gist options
  • Select an option

  • Save autarch/1764c016eb31d37a88613411ef4e997d to your computer and use it in GitHub Desktop.

Select an option

Save autarch/1764c016eb31d37a88613411ef4e997d to your computer and use it in GitHub Desktop.

Parameter specs

Type

  • No type, just required
  • Has a type -> Types

Required or not

  • Required
  • Optional

Defaults

  • No default
  • Has a non-sub defualt
  • Has a subroutine default

Slurpy

  • Any type
  • A specific type -> Types

Parameter passing style

  • Named
  • Named to list
  • Positional

Types

Type System

  • Moose
  • Specio
  • Type::Tiny

Inlining

  • Type can be inlined
    • Type inlining requires "env" vars
    • Coercion inlining requires "env" vars
  • Type cannot be inlined

Coercions

  • No coercion
  • With coercion(s)
    • that can all be inlined
    • none of which can be inlined
    • some of which can be inlined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment