-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newtype: validating tuples #824
Comments
I think currently the design of newtypes does not supports wrapping tuples at compile-time. If we define something like: type Both = Both.Type
object Both extends Newtype[(Int, String)] Then compile-time construction of that newtype
Macro requires we provide literal value, but we use tuple. Hope this limitation will be removed, because newtypes of tuples is helpful. |
@octavz Did you try with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
We should have a way to build a custom assertion for any given type.
Thank you
The text was updated successfully, but these errors were encountered: