I understand Rust being type safe, but Im seeing syntax that Ive never seen in my life in Go which looks too messy

var test int < bruh what?

:=

func(u User) hi () { } Where is the return type and why calling this fct doesnt require passing the u parameter but rather u.hi().

map := map[string] int {} < wtf

  • urskaOP
    arrow-up
    2
    arrow-down
    2
    ·
    4 months ago
    link
    fedilink

    C, C++, Assembly, java, Rust, Haskell, Prolog