Skip to content

Feature request: Conditional function chaining #1109

Description

@ceremcem

I think it would be nice to have conditional function chaining, like the following:

a
  .x!
  .y! if foo
  .z!

...which will be compiled to:

var x$;
x$ = a;
x$ = x$.x();
if (foo) {
  x$ = x$.y();
}
x$ = x$.z();

This feature will be useful when we need a conditional middle step on a long function chain.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions