3 ms·
"var n int" means "in this scope, declare variable n to be if type int". "type T adder" means "in this scope, declare T to be a type adhering to the adder cont
by ithkuil 7y ago
"var n int" means "in this scope, declare variable n to be if type int".
"type T adder" means "in this scope, declare T to be a type adhering to the adder contract"
- dilap 7y agoGood way to think of it.