Skip to content

Feature request: Conditional function chaining #1109

@ceremcem

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.

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