Join Slack
Powered by
honestly I feel like a receiver type might be able...
# announcements
g
groostav
07/25/2016, 10:08 AM
honestly I feel like a receiver type might be able to alleviate this:
Copy code
with(ImplicitWidening){ Math.pow(a.d, b.d); }
where
ImplicitWidening
is an object with extension getter
d
==
toDouble()
. If Kotlin added implementations for casting then this gets more interesting.
Open in Slack
Previous
Next