You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be a function, a method, an overload, etc. Just something to make it easier.
Complications:
If neither $dict1 nor $dict2 have a slurpy, neither should $combined. If one of them has a slurpy, $combined should inherit it. If $dict1 and $dict2 have slurpies typed HashRef[$s1] and HashRef[$s2], then $combined should have a slurpy typed $s1 | $s2. Otherwise $combined should have Slurpy[Any].
option to demote $dict2's keys to being optional in $combined?
The text was updated successfully, but these errors were encountered:
What values should $combined allow for foo? HashRef | ArrayRef even though an arrayref will confuse consumers of $dict1 and a hashref will confuse consumers of $dict2? HashRef & ArrayRef even though that matches nothing?
Extracting this from #110.
Basically a shortcut for:
This could be a function, a method, an overload, etc. Just something to make it easier.
Complications:
$dict1
nor$dict2
have a slurpy, neither should$combined
. If one of them has a slurpy,$combined
should inherit it. If$dict1
and$dict2
have slurpies typedHashRef[$s1]
andHashRef[$s2]
, then$combined
should have a slurpy typed$s1 | $s2
. Otherwise$combined
should haveSlurpy[Any]
.$dict2
's keys to being optional in$combined
?The text was updated successfully, but these errors were encountered: