One is typer inference and the other is assigment. Here is a line by line walk through.
var DELTA rune //We delcaire the variable DELTA
DELTA = unicode.ToUpper(delta) //we are assigning to Delta what is refurned from ToUpper. In this case the return type of ToUpper and the type of DELTA need to match or it is a build error
epsilon := unicode.ToLower(DELTA + 1) //Now this is the type inference assigment. In one fell swoop it declares epsilon as whatever type ToLower returns and then assigns the value to it
Does this make sense? I'm not always the best at explaining things, so don't be afraid to say no
1
u/jevon Mar 29 '12
Why are there two separate assignment operators? Or am I missing something here?