Hi Roland
You're correct. Sometimes in Python there's no symmetry between beginning and end. This is I think because we read Python code top-down rather than bottom-up. And as it happens, the compiler and other data processing tools usually start at the beginning of the file.
(1) Here's something you might not have thought of
>>> (1)
1
>>> (1,)
(1,)
You're asking for
>>> (,1)
(1,)
> the concept positing the "one-way direction" or "asymmetry" of time. It was developed in 1927 by the British astrophysicist Arthur Eddington, and is an unsolved general physics question.
(3) The Elm language uses leading commas on the second and subsequent items on a list. Here's some Elm code that's gone through the elm-format command. (It's analogous to Python's black.)
fahrenheit =
{ freezing_point = 32
, boiling_point = 212
}
freezing_point =
32
boiling_point =
212
data =
[ [ [ 1, 2, 3 ], [ 4, 6, 6 ] ]
, [ 10, 20, 30, 40, 50 ]
, [ 10
, 20
, 30
, 40
, 50
]
]
(4) Finally, here is an Elm bug that I happened to raise a few hours earlier. It's:
Malformed record modify `{ key | }` creates EXTRA COMMA error
with best wishes
Jonathan