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
function o(x,y,z){ return {x,y,z} }
Produces bytecode that sets the fields 1-by-1:
;; function o(x, y, z) { return {x, y, z} } object get_arg0 0 ; x define_field x get_arg1 1 ; y define_field y get_arg2 2 ; z define_field z return
It should be more efficient to use an "object template" that describes what properties the object has:
;; function o(x, y, z) { return {x, y, z} } get_arg0 0 ; x get_arg1 1 ; y get_arg2 2 ; z define_object <id> ; ( x y z -- o ) return
Benefits:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Produces bytecode that sets the fields 1-by-1:
It should be more efficient to use an "object template" that describes what properties the object has:
Benefits:
The text was updated successfully, but these errors were encountered: