Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Using case objects in place of case classes having no members #11
Yeah, this binding is a little bit confusing in this context :) .
Actually with your case object under the hood we could even consider using boolean variables in this test. For example:
What do you think?
Looks cleaner, however
What I don't like is the lack of symmetry - your suggestion looks better from that perspective.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I personally prefer the following syntax for matching all classes.
But its up to the spring-scala users to decide how they would like to use the library.
I think that pull request is ready to merge in the current state :) .