I want to know if anybody can explain to me, why the keyword "map" is
necessary in go.
why can't the compiler simply look wheter there is something inbetween
the brackets or not? If there is something in there, it must be a map.
If there is not, it must be a list. Like in:
someList int // Must be a list because brackets are empty
someMap [string] int //Must be a map because there is a key-datatype
Thanks in advance,
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.