TenDecigrams·há 11 anos·discussEdit: Ohhh! I see! The message isn't evaluated until after! Got it.I don't understand why this is special?Why can't you rewrite log.debug to include the check? func debug(m string) { if log.isDebugEnabled() { log.debug(m); } } What makes macros special in this case?
TenDecigrams·há 11 anos·discussI wonder if Elon and the owner of SolarCity will get in touch. Oh wait... ;)
I don't understand why this is special?
Why can't you rewrite log.debug to include the check?
What makes macros special in this case?