-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tour: explain function syntax better #4284
Comments
This is now /moretypes/21. The slide is focusing on the closure, and the function signature seems somewhat incidental. I suspect that adding explanations regarding the function signature might distract from the main point. @adg What about adding a separate slide about function values? |
The previous slide is about function values, but it doesn't say much. We could certainly expand on that. |
Agreed. I'll take this one. |
Would it be too much to expand the code example for the function values slide? E.g. something like this:
|
CL https://golang.org/cl/15752 mentions this issue. |
@kytrinyx how about just having |
Oh, nice. Yepp, I like that. |
Typo introduced when addressing golang/go#4284 Change-Id: Iba8e9e8ef4c8fa528c10c42cf4cff244086712aa Reviewed-on: https://go-review.googlesource.com/15801 Reviewed-by: Andrew Gerrand <adg@golang.org>
The description was a little bit sparse. The next slide talks about closures, but since the idea of function values wasn't clear to all readers, some people got confused when the next slide defined a function that had a function as a return value. Fixes golang/go#4284 Change-Id: Id71f71cafb7c411dbad8306980f7eb1d75aa59e5 Reviewed-on: https://go-review.googlesource.com/15752 Reviewed-by: Andrew Gerrand <adg@golang.org> X-Tour-Commit: 500288ff415f380583e271decde1cde70e3348ef
The description was a little bit sparse. The next slide talks about closures, but since the idea of function values wasn't clear to all readers, some people got confused when the next slide defined a function that had a function as a return value. Fixes golang/go#4284 Change-Id: Id71f71cafb7c411dbad8306980f7eb1d75aa59e5 Reviewed-on: https://go-review.googlesource.com/15752 Reviewed-by: Andrew Gerrand <adg@golang.org> X-Tour-Commit: 500288ff415f380583e271decde1cde70e3348ef
The description was a little bit sparse. The next slide talks about closures, but since the idea of function values wasn't clear to all readers, some people got confused when the next slide defined a function that had a function as a return value. Fixes golang/go#4284 Change-Id: Id71f71cafb7c411dbad8306980f7eb1d75aa59e5 Reviewed-on: https://go-review.googlesource.com/15752 Reviewed-by: Andrew Gerrand <adg@golang.org>
The text was updated successfully, but these errors were encountered: