Pre-SIP: A New Type for Optionals and Error Handling (2)

I imagine these will be placed in Predef. This will cause two issues:

  1. Due to erasure, it will collide with existing map and flatMap methods that the user may define. So if introduced in Predef, these will be need @targetType("scalaPredefMap"), @targetType("scalaPredefFlatMap"), etc.
  2. Even if 1 is fixed, there is still the issue where extension methods with the same name do not work well due to shadowing. Relaxed extension methods (SIP 54) are not relaxed enough
1 Like