Skip to content

Comment on Go Isn't Cparent

Comments

I think timtadh's jab about you not knowing your tools wasn't about the structs with a type field but about the .(float64) in

    case float64:
        fmt.Printf("%f\n", v.(float64))
which can be simplified to
    case float64:
        fmt.Printf("%f\n", v)
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.