That's clever, I like that. Not sure if I'll use it, but I'll keep the technique in mind.
On Sun, Feb 26, 2012 at 4:30 AM, JeanHuguesRobert < [email protected]> wrote: > De&&mand( something) // ie "Demand" instead of "Assert" > > That's a convention I use to solve your issue. Instead of commenting > out the assertions, I simply sets global "De" variable to false. > > Note: works for debug trace messages too, using De&&bug( msg) > > > > On 26 fév, 10:02, sungchan lee <[email protected]> wrote: > > Hi. > > > > How can I turn on/off assertion message when I release my code to > > public? > > For example, assertion message might help for development but in the > > production mode, I don't want to see assertion message. > > > > Is there any other way than commenting out all the places I used > > assertion? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
