3 ms·
It occurred to me that, though verbose, this syntax leaves the door open for specialization of methods, eg func (m *Map(K, V)) Insert(key K, val V) bool
by nickcw 7y ago
It occurred to me that, though verbose, this syntax leaves the door open for specialization of methods, eg
func (m *Map(K, V)) Insert(key K, val V) bool
func (m *Map(K string, V string)) Insert(key K, val V) bool
func (m *Map(K int, V int)) Insert(key K, val V) bool