Subject: | "Default" type constraint for using with Dict and Tuple |
Hi.
Maybe it will be useful to add "Default" constraint.
Dict [
aaa => Default [Num, 10],
bbb => Default [20],
]
It should check if key exists, and if exists - validate value type, if type constraint present.
If key not exists - create key with default value.
And the same for Tuple.
I can prepare patch request, if you do not mind.