I believe it's useful to write a preprocessor for golang. And run it before 
every go compilation.

So that I'll be happy to feed myself C++-style golang.

在 2013年2月23日星期六 UTC+8下午10:20:34,Tong Sun写道:
>
> Hi, 
>
> Expressed in C macros, I'd like to define something like this:
>
>  #define Debugln(X) if debugging { println(X) } 
>
> What's the closest way to do it in go? 
>
> Thanks
>
>

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