Closed ghost closed 6 months ago
Yes AsymmetricPair
is a pretty bad name and was a terrible mistake. Ideally there would be a way to fix this without breaking backwards compatibility.
I've got a potential solution which might fix this soon
Fixed in https://github.com/AdeptLanguage/AdeptImport/commit/a94a373cb8cebdeb51703dbeac71e95bcd33829f
These changes are fully backward compatible, so old code will still work.
<$T, $S> AsymmetricPair
has been replaced with <$T, $S> Pair
<$T> Pair
is still valid, but has been replaced under the hood with alias <$T> Pair = <$T, $T> Pair
🎉
Pair
is enough. It doesn't take longer to write<T, T> Pair
than<T> Pair
. Please removeAsymmetricPair
and extendPair
.