4 ms·
> for v in values: { Both colon and {... why? And it seems very mixed in the example.
by boxed 8mo ago
> for v in values: {
Both colon and {... why? And it seems very mixed in the example.
- OJFord 8mo agoI have no knowledge of lily, but a good reason could be for example that you can do `: print(v)`, but need braces for a multi-line block. Or that braces are the difference between creating a new scope and not. It's not necessarily just syntax for the sake of it.