Browsed by
Category: Golang

Swift vs Go

Swift vs Go

Creating Variables Jumping from the Swift programming language to the Go programming language is easy, as I discovered. But how does creating variables compare? Variable Declaration (without assignment) In Swift, first we declare whether the variable will change or not, so we choose let or var. Second, we choose a variable name, followed by some semicolons and the type of the variable. Example: var myNumber : Int? . Note that we have to add a ‘?’ to make this an…

Read More Read More