-
Notifications
You must be signed in to change notification settings - Fork 1k
Suggestions in the Scala book (3) #2076
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
Suggestions in the Scala book (3) #2076
Conversation
@julienrf, when I review these, is it better to click the Comment button when making a comment, or to press the Review button? I used the Comment approach with the “functions” suggestion, and Review button with the “comma after ‘definition’” suggestion. Update: Whoops, it looks like the Review button started a review process on this file, so I’ll continue with it. |
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.
These changes look great — thanks!
@@ -233,7 +234,7 @@ Here’s a method named `isTruthy` that implements the Perl definitions of `true | |||
|
|||
```scala | |||
def isTruthy(a: Any) = | |||
if a == 0 || a == "" then | |||
if a == 0 || a == "" || a == false then |
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.
Wow, thanks, this is a great catch! No telling how many times I’ve written that wrong.
I’ve reviewed the chapters Methods, Functions, and Packaging and Imports.
dfb6540
to
273a57f
Compare
I like the review button because it sends me just one email notification 😊 Thank you for the review, Alvin! |
You’re welcome, I’m glad to help! |
I’ve reviewed the chapters Methods, Functions, and Packaging and Imports.
I kindly request a review by @alvinj 😊