-
Notifications
You must be signed in to change notification settings - Fork 147
Fixes #225, add a section on Scala functions #236
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
Conversation
|
And line 416 isn't completely true. Currying isn't distinguished as a concept from partial application by multiple parameter lists, although it's true that currying is allowed in scala if you write a function with multiple parameter lists. Perhaps it's best just to give a simple, language-agnostic definition of currying here. |
|
@stewSquared Thanks for the proofreading. It is easier to process it if you use line comments, though, as then the comments are visually attached to the lines you're commenting on. It would be easier for you, too, as you won't have to report the line numbers into your comment. |
|
@sjrd Of course! Thanks for the tip. |
|
In the Scala documentation currying is defined as
Another Scala definition I found was
Of course the "purist" view is that curried function has always only a single parameter, but in practice "currying" is used in a more relaxed way in Scala. For our purpose, the point of multiple parameter lists is more important than the "real" currying. |
|
Okay, that's a fair point. I'm glad to help out! |
| language, provides much more when it comes to functions. Let's explore some of the more advanced features and how they | ||
| compare to JavaScript. | ||
|
|
||
| #### Higher-order functions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a level-3 header (and not 4)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 2 vs 4 level has been used elsewhere, too, for better visual clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK let's keep it that way for now, but we should globally fix this another time.
|
That's all. |
|
LGTM |
Fixes #225, add a section on Scala functions
No description provided.