Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

$object->method{ code } #133

Open
schwern opened this Issue · 0 comments

1 participant

@schwern
Owner

Allow $object->method{ code } as a synonym for $object->method(sub { code }) to be on par with function { code }. This includes $object->method{ code } @args as a synonym for $object->method(sub { code }, @args);

Keep in mind we also want $object->method(@args) { block } so this may simply be a general case of allowing $object->method { block } @args or $object->method @args {block}. Block as the first or last argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.