Join Slack
Powered by
implicit_cast_for_kinded_values_replaces___fix___....
# arrow-meta
r
raulraja
07/17/2019, 12:30 AM
implicit_cast_for_kinded_values_replaces___fix___.kt
implicit_cast_for_kinded_values_replaces___fix___.kt
🤯 1
k
kioba
07/17/2019, 10:47 AM
implicitly casted
means the typeChecker calls the
fix
when realizing the two type is isomorphic?
kioba
07/17/2019, 10:48 AM
looks awesome btw! 🙂 I didn’t realize we can have that much control
❤️ 2
r
raulraja
07/17/2019, 11:12 AM
Implicitly casted means the type checker overrides isSubtype and considers both type comparing the same
raulraja
07/17/2019, 11:12 AM
But there is not extra bytecode generated for the implicit cast because we have the certainty that nobody else extends OptionOf
raulraja
07/17/2019, 11:15 AM
https://github.com/47deg/arrow-meta-prototype/blob/9b191564cfec14dbe8d10ba20351529b7b70cbb4/compiler-plugin/src/main/kotlin/arrow/meta/utils/KindAwareTypeChecker.kt#L16
🎉 4
2
Views
Open in Slack
Previous
Next