Comment

Comment by mseepgood

> We have function types literally at the same exression, but Go requires to repeat it.

It does not require it, the author chose to do it.

    t1 := hashtable.New(8, func(key string, m int) int {
is perfectly valid.

https://go2goplay.golang.org/p/SbEXpyVl-V3

parent mseepgood 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton