Skip to content

Blog post on implicit functions #570

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

Merged
merged 2 commits into from
Dec 7, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 7, 2016

I'd like to release this today, so that people can read it before the ScalaX talk. So it would be good to merge this quickly.


## Conclusion

Implicit function types are unique way to abstract over the context in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"are [a] unique way"

succeed by defining the required implicit parameters.

There is one final tweak to make this all work: When using implicit parameters
for nested functions it was so far important to give all implicit parameters
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"so [very] important"


(implicit thisTransaction: Transaction)

A three-times repetition might not look so bad here, but it certainly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"[Having to repeat] three-times might"

---

I just made the [first pull request](https://github.com/lampepfl/dotty/pull/1775) to add _implicit function types_ to
Scala. I am pretty excited about it, because - citing the explanation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scala -> Dotty?

@odersky
Copy link
Contributor Author

odersky commented Dec 7, 2016 via email

@odersky odersky merged commit 68525f5 into scala:master Dec 7, 2016
@odersky
Copy link
Contributor Author

odersky commented Dec 7, 2016

It's merged but not showing up. What's wrong?

@SethTisue
Copy link
Member

SethTisue commented Dec 7, 2016

fixed in b287dc0 should show up on the site shortly is live now

@SethTisue
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants