Skip to content

Instantly share code, notes, and snippets.

@vito
Created December 14, 2010 02:22
Show Gist options
  • Save vito/739911 to your computer and use it in GitHub Desktop.
Save vito/739911 to your computer and use it in GitHub Desktop.
@(foo: a) matches @(foo: 2), binding a as 2
@(foo: 2) matches @(foo: 2)
@(foo: _) matches @(foo: 2)
@(foo: _) matches @(foo: _)
@(foo: a) SHOULD NOT MATCH @(foo: _) (I just checked, and it *does* match atm, but it doesn't bind a as anything)
@(foo: 2) DOES NOT MATCH @(foo: _)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment