2 ms·
You have to explicitly call something like UserId(...), just like with any other type. (You can actually do this technique in C by using a 1-element struct, alt
by lmm 4y ago
You have to explicitly call something like UserId(...), just like with any other type. (You can actually do this technique in C by using a 1-element struct, although it's a lot more cumbersome than Scala since the type system is so much more limited).