I’m a bit jaded with regards to programming languages, so I enjoy finding interesting nuances in them. Here a couple from Go.
Assignments, Arguments & More
If you’ve written any Go you’ll know you can assign multiple return results in one statement:
And maybe you know that commas can appear on the right side of the assignment too, so in fact, the rotate function is redundant:
But you might not know this one, I only stumbled on it recently: