FAQ
Patch adds Print* equivalent Debug* functions that only print out when
the Ldebug flag is set. Super simple but it makes my life much nicer
and I was wondering if others were interested.

--

Search Discussions

  • Rob Pike at Oct 30, 2012 at 11:04 pm
    No, thanks. The idea is simple and straightforward but it means that
    the arguments will be evaluated even if Ldebug is false. For many
    purposes, that's OK, but for many it's really not, and the standard
    library should not encourage bad practices.

    -rob

    --
  • Marco Peereboom at Oct 31, 2012 at 3:00 am

    On 10/30/12 18:04, Rob Pike wrote:
    No, thanks. The idea is simple and straightforward but it means that
    the arguments will be evaluated even if Ldebug is false. For many
    purposes, that's OK, but for many it's really not, and the standard
    library should not encourage bad practices.

    -rob
    Understood (and agreed) but I had to ask :)

    Are there other debug facilities being developed that I could look at?

    --
  • Rémy Oudompheng at Oct 31, 2012 at 5:21 am

    On 2012/10/31 Marco Peereboom wrote:
    On 10/30/12 18:04, Rob Pike wrote:

    No, thanks. The idea is simple and straightforward but it means that
    the arguments will be evaluated even if Ldebug is false. For many
    purposes, that's OK, but for many it's really not, and the standard
    library should not encourage bad practices.

    -rob
    Understood (and agreed) but I had to ask :)

    Are there other debug facilities being developed that I could look at?
    I'm not sure I understand: didn't you just write one?

    Rémy.

    --
  • Tamás Gulácsi at Oct 31, 2012 at 5:50 am
    Check out github.com/cihub/seelog - not perfecz, but works.

    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 30, '12 at 11:04p
activeOct 31, '12 at 5:50a
posts5
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase