-
Notifications
You must be signed in to change notification settings - Fork 108
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
Adding .map and .flatMap to trait Binding #133
Comments
Try |
Works like a charm! Thanks! |
Feel free to create a pull request for adding Scaladoc about this trick. |
I've found there are two issues when using
What do you think about this two issues? |
|
Thank you so much for the reply! And about the second one. |
I suppose, there is no good answer. This is mentioned in #128 (please, see chapter "Containment" and the improvement 1) |
@glmars Yes. I have been through that amazing article completely! In my understanding, what actually happens here to user defined tags is we first create a So if the component is multilayered and the children parameter will be used inside these layers. For example the We needs to use |
Map
andFlatMap
are now classes insidecom.thoughtworks.binding.Binding
which makes them a little bit difficult to use.And Scala compiler also fails to do the type inference because
upstream
&f
param are inside the same pair of parentheses.So currently I have some code like this:
Is it possible to add
.map
and.flatMap
totrait Binding
?The text was updated successfully, but these errors were encountered: