We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 support for prototype functions to map objects for OOP workflows, custom access logic, etc.
This is a WIP issue for ongoing design work on prototypes.
Map prototypes can be retrieved and assigned with [proto] and [set-proto] respectively:
[proto]
[set-proto]
<$myobj = @()> <$myproto = @(proto-method = [?]{foo})> [set-proto:<myobj>;<myproto>] [proto:<myobj>] # [map(1)]
Elements of a map's prototype act like elements of the owning map.
<$myobj = @()> <$myproto = @()> [$myobj/test] { foo } [$myproto/test] { bar } [set-proto: <myobj>; <myproto>] [myobj/test] # bar
The text was updated successfully, but these errors were encountered:
TheBerkin
No branches or pull requests
Add support for prototype functions to map objects for OOP workflows, custom access logic, etc.
This is a WIP issue for ongoing design work on prototypes.
Getting and setting prototypes
Map prototypes can be retrieved and assigned with
[proto]
and[set-proto]
respectively:Prototype methods
Elements of a map's prototype act like elements of the owning map.
The text was updated successfully, but these errors were encountered: