Aditya Sood 9ba0fd08de
Minor addition to if-else text on declarations (#450)
* Minor addition to if-else text on declarations

Extremely minor addition to if-else text on declarations preceding conditionals, by explicitly clarifying that variables declared are only available in branches succeeding the declaration, not all the branches in the if-else ladder (i.e. preceding branches will not have it in their scope)

This edit might be redundant since variables in Golang can only be used after declaration, but to a complete novice the original wording of "...any variables declared in this statement are available in *all* branches..." might be a little misleading and appear to say that the variable is in-scope for the preceding branches as well (as this seems to be a very Golang-specific semantic that other high-level languages like C/C++, Java, Scala, Kotlin etc don't support; and so it will be a brand new paradigm for developers coming from such languages).

Thanks!

* Increment: Include changes in source .go file for #450
2022-10-25 06:00:36 -07:00
..
2022-09-08 05:37:20 -07:00
2020-04-10 18:06:38 -07:00
2022-09-08 05:37:20 -07:00
2020-04-10 17:50:55 -07:00
2020-08-23 07:50:27 -07:00
2021-09-10 07:19:33 -07:00
2022-06-27 20:48:50 -07:00