3 ms·
The "with" method cascades could be even nicer if they were VB-like, which needed a . prefix. Example: with obj { .field = abc; xyz = .foo(12
by willvarfar 10y ago
The "with" method cascades could be even nicer if they were VB-like, which needed a . prefix.
Example:
with obj {
.field = abc;
xyz = .foo(12);
.method();
}
This would have several advantages:
* easy for syntax completion
* can access names that are not in the innermost with-scope
* can access names at outer with-scopes using .. and ... etc