3 ms·
If we want to call any of the methods on the wrapped type we have to call directly to the wrapped type violating Demeter. You can also use tagged types: http:
by yummyfajitas 13y ago
If we want to call any of the methods on the wrapped type we have to call directly to the wrapped type violating Demeter.
You can also use tagged types:
http://eed3si9n.com/learning-scalaz/Tagged+type.html http://eed3si9n.com/learning-scalaz/Tagged+type.html
But most of the methods will untag the type. I.e., ("foo" @@ ValidJsonString).substring(3,7) will be a String, not a String @@ ValidJsonString.