Tag: programming

Variable captured by func literal

Source: https://stackoverflow.com/questions/40326723/go-vet-range-variable-captured-by-func-literal-when-using-go-routine-inside-of-f#40326812 it’s a common mistake for new comers in Go, and yes the var currentProcess changes for each loop, so your goroutines will use the last process in the…

Go features

Source: http://qr.ae/TUpzWs In Go a type definition is neither pointer nor value, it’s just a type. Go doesn’t have classes Go doesn’t have inheritance, it has interfaces for polymorphism and…

Why Delegates

https://www.velir.com/blog/2011/07/14/how-improve-code-reusability-using-c-delegates http://www.codeproject.com/KB/cs/delegatespart1.aspx http://www.codeproject.com/KB/cs/delegatespart2 http://www.codeproject.com/KB/cs/delegatespart3 http://www.codeproject.com/KB/cs/delegatespart4 http://www.codeproject.com/KB/cs/delegatespart5