3 ms·
Might as well allow multiline lambdas and js-style ternary statements. JS (under JSX skin) makes constructing a tree of components really ergonomic. Similar lib
by aitchnyu 2y ago
Might as well allow multiline lambdas and js-style ternary statements. JS (under JSX skin) makes constructing a tree of components really ergonomic. Similar libraries in Python rely on doing side effects and context managers and dsls.
Also TS has slightly more consistent syntax for return types than Python.
```
// TS
function fn(a: Type, b: Type) : Type {
}
// Python
def fn(a: Type, b:Type) -> Type {
}
```
But I want python to have to close braces on as few lines as possible. Yes I'm a Black user and wonder how.