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

  • hector@sh.itjust.works
    link
    fedilink
    arrow-up
    7
    ·
    6 months ago

    Wow it shows how much it boils down to préférence at the end of the day.

    I’m a Go fanboy, I cannot cite an aspect of the language I don’t like, find clunky…

    Wow. I love syntax, the tooling, the speed, the errors, the testing framework.