Because the stdlib generic map is not 1) an interface (e.g. cannot have 
concurrent semantics with same syntax ) and 2) cannot work with arbitrary types 
- they must implement comparable. 

I thought this was obvious from the discussion. 

> On Jun 26, 2025, at 1:55 AM, Jan Mercl <0xj...@gmail.com> wrote:
> 
> On Thu, Jun 26, 2025 at 8:30 AM Robert Engels <reng...@ix.netcom.com> wrote:
> 
>> Agreed. I’ve been away from Go for a bit - I just assumed with hash/maphash 
>> the stdlib had a generic map… ugh.
> 
> Why should the _stdlib_ have a generic map when the _language_ had a
> generic map since it went public in 2009?

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/C2207B90-3144-46DF-9227-F283331895AA%40ix.netcom.com.

Reply via email to