Day: October 5, 2016
-
Go: Declaring and using objects
Go (or Golang) doesn’t have the concept of classes. The class equivalent in Go loos like this: // Make a Car class equivalent type Car struct { // object properties go here doors int } // Get the number of doors func (car *Car) Doors() int { return car.doors } // Set the number of…
-
First impressions of Go
I have been in search for a language I can use for web programming, writing computationally intensive and general scripting among other things. The language that came close to fitting all of these things was Racket, a dialect of Chicken Lisp. It can even do geometry drawings. However, there were issues with it so I…