Next to val and var declarations, we could have "let" constructs:
let a = b + 9
This would be equivalent to
{a = b + 9}
i.e. a tiny code fragment (proposed new syntax {}) doing the assignment.
This has 2 benefits: less parentheses-like symbols (i.c. braces), and good alignment with val and var declarations.
Next to val and var declarations, we could have "let" constructs:
This would be equivalent to
i.e. a tiny code fragment (proposed new syntax {}) doing the assignment. This has 2 benefits: less parentheses-like symbols (i.c. braces), and good alignment with val and var declarations.