Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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
    }


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: