Have you considered using the new type alias feature introduced in 1.9? 
Line so:


This would allow you to change the type of the map in a singe place (the 
type alias) and all the *{}* or *make *would adapt appropriately. 
Disclaimer: I am not espousing this style, just pointing out that it is 

On Thursday, February 22, 2018 at 3:03:13 PM UTC-5, Devon H. O'Dell wrote:
> Hi all, 
> It's been some time since I really contributed much of anything to the 
> project (sorry!), but after 8 years, I'm finally writing Go outside of 
> the project itself (and outside of porting efforts). I was lamenting 
> to some coworkers about the lack of a comparable feature to C's 
> "malloc idiom" and they suggested I write an experience report on it. 
> I wrote the bulk of the article a month ago, but finally put in some 
> finishing touches and published. 
> For whatever it's worth (probably not much): 
> https://9vx.org/post/a-malloc-idiom-in-go/ 
> --dho 

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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to