by tikhonj · 10y ago · 0 comments
{ one = 1
, two = 2
, three = 3
}
It's weird, but it's actually pretty convenient. I think it has all the same properties the article argues for, but I don't want to figure it out for sure at the moment. empty
|> ("one" , 1)
|> ("two" , 2)
|> ("three", 3)
Edit: It's interesting that, when we have things that are supposed to commute, we use infix operators that create a layout that makes it difficult to reorder them.Adding items to the end of a list, tuples to a dictionary, arguments to a function etc... is more common then adding them to the start.
It is marginally more difficult than leaving in trailing commas, but way better than adding missing unaligned commas at EOL.
I was initially surprised by this but now knowing that the creator comes from a Haskell background, it makes sense that he would prefer it.