Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Rewrite automatic unit insertion #214
// before val x: Option[Unit] = Option() // after val x: Option[Unit] = Option(())
As discussed in #208, we should include this into
The implementation should be simple enough, since the compiler provides detailed messages for this case too.
This would be a nice rewrite. Question is whether we should bundle this rewrite with NoAutoTupling or keep it separate. I think it might make more sense to keep it separate as
val NoAdaptedArgs = NoUnitInsertion.andThen(NoAutoTupling)
I like that! Composition FTW
Yes, especially for rewrites working with compiler messages, some position-based operations would be extremely useful!