Comment by ๐Ÿ€ gritty

=> Re: "Go - can someone explain why empty interfaces can hold any..." | In: s/programming

I guess that makes sense. I first saw this when reading about using an interface as a value in a map for json.

=> ๐Ÿ€ gritty [OP]

2024-11-23 ยท 2 months ago

Original Post

=> ๐ŸŒ’ s/programming

Go - can someone explain why empty interfaces can hold any value, where it seems "regular" interfaces only define functions? In other words, why can the empty interface hold something other than a function definition? new to Go and interfaces in general...

=> ๐Ÿ’ฌ gritty ยท 2 comments ยท 2024-11-23 ยท 2 months ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/gritty/22120
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
57.445036 milliseconds
Gemini-to-HTML Time
0.777711 milliseconds

This content has been proxied by September (3851b).