Functions returning multiple values is taken to next level.
Golang’s documentation to get started is very well designed and implemented. Other languages can learn a bit from here to not make their complex-language learning extra-complex.
I thought I have seen last of pointers for major use cases, alas, I am mistaken.
“for” is new ‘while’.
Switch is all powerful. (Good. I still remember how I suffered with switch in Java6 days)
Methods are c# extension methods. (Or the otherway)
Go is C.Redefined. (Or C.Redesigned or C.Improved)
Go is not OOPS but Go is OOPS (Or Go is only a bit of OOPS and lot of Procedural)
Copy is actually CopyTo as destination is first argument and source is second argument.
Defer will do finally’s job, in more human way. Defer + Recover is catch; panic is throw exception. But the documentation says they don’t have try catch – I am a bit confused. It feels panic-defer-recover are more human friendly design of try-catch-finally.