2 ms·
This simply would not compile because of "(mismatched types int and nil)". Solved already. That's why I actually would prefer the "_" syntax: var x int
by Joker_vD 5y ago
This simply would not compile because of "(mismatched types int and nil)". Solved already.
That's why I actually would prefer the "_" syntax:
var x int
x = _
_ = 42
if x == _ {
// this happens even though you've assigned 42 to _, yes
}