Skip to content

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

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

julienrf
Copy link
Contributor

@julienrf julienrf commented Jun 9, 2021

I’ve reviewed the chapters Methods, Functions, and Packaging and Imports.

I kindly request a review by @alvinj 😊

@julienrf julienrf requested a review from b-studios June 9, 2021 16:16
@julienrf julienrf changed the title Suggestions in the Scala book Suggestions in the Scala book (3) Jun 11, 2021
@alvinj
Copy link
Contributor

alvinj commented Jun 12, 2021

@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.

Copy link
Contributor

@alvinj alvinj left a 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
Copy link
Contributor

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.
@julienrf julienrf force-pushed the scala3-book-suggestions-part3 branch from dfb6540 to 273a57f Compare June 14, 2021 08:05
@julienrf julienrf merged commit dd096ef into scala:main Jun 14, 2021
@julienrf julienrf deleted the scala3-book-suggestions-part3 branch June 14, 2021 08:08
@julienrf
Copy link
Contributor Author

when I review these, is it better to click the Comment button when making a comment, or to press the Review button?

I like the review button because it sends me just one email notification 😊

Thank you for the review, Alvin!

@alvinj
Copy link
Contributor

alvinj commented Jun 14, 2021

You’re welcome, I’m glad to help!

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.

2 participants