Skip to content

@kitcambridge /gist:1054151
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
var Person = {
'initialize': function(first, last) {
this.first = first;
this.last = last;
},
'speak': function(message) {
return this.first + ' ' + this.last + ': ' + message;
}
};
// Unary `<|`; equivalent to `{} <| Person`.
var kit = <| Person;
kit.initialize('Kit', 'Goncharov');
@md2perpe

New operator <|?

@kitcambridge

@md2perpe Yep, the "Set Literal Prototype Operator". It's currently a binary operator, but I think its semantics could be easily extended.

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.