News for hackers. Stuff that matters.
Re:Go 1.3 beta 1 released by dilap on Wednesday April 23, 2014 @10:41AM (#7634215)
Pretty much impossible to add at this point w/o breaking back-compat, though, right?
Re:Go 1.3 beta 1 released by thescrewdriver on Wednesday April 23, 2014 @11:03AM (#7634349)
fmt.RichPrint("....")
Re:Go 1.3 beta 1 released by greiskul on Wednesday April 23, 2014 @12:48PM (#7635163)
And how would this function capture variables from the local scope? The only way this could be added would be with new syntax.
Re:Go 1.3 beta 1 released by thescrewdriver on Wednesday April 23, 2014 @04:09PM (#7636598)
I haven't dug into the details, but here's how Scala went about adding string interpolation: https://docs.google.com/document/d/1NdxNxZYodPA-c4MLr33KzwzK...
Re:Go 1.3 beta 1 released by dilap on Wednesday April 23, 2014 @01:51PM (#7635632)
That's what I was thinking, but now that you mention it, all that is needed is to have introspection gain the ability to examine local variables up the stack, so I guess it's do-able w/ back compat after all.

I wouldn't hold my breath, though.