21 May
2020
21 May
'20
1:54 a.m.
On 2020-05-20 23:16, James Lu wrote:
"<:" Does not give the user any intuition about what it does. "<~" Ok, but same problems as "<:" and precludes the use of "<~~" due to Python's parser. "::" Could be confused with Haskell's type declaration operator.
If we want to avoid confusion with the walrus operator, "options!?=..." is a decent alternative. It can be remembered as "if not there? equal to" [! there? =].
"<~" isn't OK because "<" is a binary operator and "~" is a unary operator, so that's the same as "< ~".