Skip to content

Idea: nested & #231

@akx

Description

@akx
thing1
  &thing2
    &doStuffWithThing2()
    &&doStuffWithThing1(&somethingFromThing2)

currently compiles to

var x0$, x1$;
x0$ = thing1;
x1$ = x0$.thing2;
x1$.doStuffWithThing2() && doStuffWithThing1(x1$.somethingFromThing2);

though it might be a nice feature to have N+1 ampersands refer to upper & scopes, ie

var x0$, x1$;
x0$ = thing1;
x1$ = x0$.thing2;
x0$.doStuffWithThing1(x1$.somethingFromThing2);

EDIT: (and &&&, &&&& etc. of course)

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