These are chat archives for evhub/coconut

2nd
Jul 2017
Jason O.
@puruzio
Jul 02 2017 15:01
{"name": name, "age": age} = {"name": "john"} This errors out. Just curious what the reason for this design decision is, as I've seen some other functional languages that match "name" only, in this example.
Evan Hubinger
@evhub
Jul 02 2017 19:14
@puruzio What would the variable age take on if your example matched? If a variable appears in a match, Coconut has that match fail if it can't find a value to assign to that variable. That being said, the fact that dictionary matching is always so strict is definitely not ideal. The solution for that is going to be #267, which should make dictionary patterns a lot nicer when it's done.