On Tuesday, October 17, 2017 at 4:52:55 PM UTC-4, Nicolas Grilly wrote: > > Hello, > > I just read about the concept of compile-time parameters in Zig (a new > programming language designed to replace C): > > > http://andrewkelley.me/post/zig-programming-language-blurs-line-compile-time-run-time.html > > Could it be a way to provide generic functions and data structures in Go? > > I note we already have some kind of "compile-time feature" with constants. > > Nicolas Grilly >
See https://github.com/golang/proposal/blob/master/design/15292/2016-09-compile-time-functions.md for a similar proposal for Go. (Note that in my proposal, “compile-time” is a property of the function rather than the parameter. From what I can tell the implications of that difference are minor.) -- 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.