On Wed, Sep 12, 2018 at 7:49 AM, Wojciech S. Czarnecki <o...@fairbe.org> wrote:
> On Wed, 12 Sep 2018 06:33:59 -0700
> Ian Lance Taylor <i...@golang.org> wrote:
>
> Addenum:
>
>>  You need to have a way to say "compile this code under certain
>> conditions based on the type argument, otherwise compile this code."
>> That is, the compiler is directed, at compile time, as to which code
>> should be compiled.  That is metaprogramming.
>
> This is not metaprogramming!
>
> Every and each statement is written by the human author in plain Go
> and no code is produced by the program itself.
>
> https://en.wikipedia.org/wiki/Metaprogramming
>>>> Metaprogramming is a programming technique in which computer programs have
>>>> the ability to treat programs as their data. It means that a program can
>>>> be designed to read, generate, analyse or transform other programs, and
>>>> even modify itself while running.

I agree that no code is produced by the program, but you're suggesting
a compile-time decision as to which code should be compiled.  We don't
have to call that metaprogramming if you don't want to, but it is
something unlike what can be done in Go today.

Ian

-- 
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