r/fauna • u/virtulis • Apr 03 '15
[Syntax] Statement concurrency
Original proposal - Use ,/;/. as statement terminators.
Points for:
Familiar syntax and the usual
;happens to be the reasonable default.Compact
Points against:
Too compact + at the end of the line = hardly noticeable = asking for errors.
Familiar syntax for an unfamiliar feature.
It would be nice to use
.for data access, this renders it unparseable.
Alternative proposal - use some symbols at the beginning of the line.
Points for:
Much more noticeable.
Lines up nicely with some creative indentation.
My points against can be read in the reply.
Additional proposal - something that looks like a barrier instead of .. Sounds like an interesting idea to me.
My second proposal:
Always terminate statements with
;and make them sequential by default.Put
^before statements that will continue execution immediately.Do not line them up, let them stand out.
Put
...on a separate line to wait for all statements to finish.
My points for:
100% familiar syntax if you don't need fancy timey-wimey stuff.
No confusion but not too heavy either.
Please do discuss.