Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

An ActionContainer array should itself be an ActionContainer #3

Open
a2 opened this issue Dec 24, 2018 · 1 comment
Open

An ActionContainer array should itself be an ActionContainer #3

a2 opened this issue Dec 24, 2018 · 1 comment

Comments

@a2
Copy link
Owner

a2 commented Dec 24, 2018

This would alleviate the need for the + operator.

Before:

let shortcut = buildShortcut(
    foo() +
    bar() +
    baz()
)

After:

let shortcut = buildShortcut([
    foo(),
    bar(),
    baz()
])
@a2
Copy link
Owner Author

a2 commented Dec 24, 2018

Not sure if this is actually even possible due to type constraint limitations.

@a2 a2 removed their assignment Dec 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant