Skip to content
New issue

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

support spread operator #220

Open
joe-p opened this issue Nov 4, 2023 · 1 comment
Open

support spread operator #220

joe-p opened this issue Nov 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@joe-p
Copy link
Contributor

joe-p commented Nov 4, 2023

The spread operator will allow for more optimized updates to multiple sequential values in a tuple.

@joe-p joe-p added this to TEALScript Nov 4, 2023
@joe-p joe-p added the enhancement New feature or request label Nov 4, 2023
@joe-p joe-p moved this to Todo in TEALScript Dec 1, 2023
@nullun
Copy link
Contributor

nullun commented Dec 15, 2023

I was just about to create a ticket for this, glad it's already on the radar. I'll just leave this here as an idea of how someone might want to use it, regardless of how strange and weird it might be.

TEALScript:

import { Contract } from "@algorandfoundation/tealscript";

class RemoteCalling extends Contract {
    call(
        app: Application,
        method: byte[4],
        args: bytes[]
    ): void {
        sendAppCall({
            applicationID: app,
            applicationArgs: [
                method,
                ...args
            ]
        });
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: TODO
Development

No branches or pull requests

2 participants