Re:What I wish I knew when learning F#
by Dayshine on Thursday October 14, 2021 @01:01PM
(#28866870)
Implicit upcast? That's amazing, I feel like that's going to help a lot with many branched functions.
[ Parent
| on HN ]
Re:What I wish I knew when learning F#
by phillipcarter on Thursday October 14, 2021 @01:08PM
(#28866985)
Yeah, it's a good feature. It's been done carefully -- there's room to do more of this kind of upcast conversion in the future -- but there's also a danger of creating code that behaves weirdly, too. See here for some of the dangers in Scala 2: https://latkin.org/blog/2017/05/02/when-the-scala-compiler-d...