Coder Social home page Coder Social logo

Sprint that wraps Fprint about errors HOT 4 CLOSED

dancingeek avatar dancingeek commented on August 19, 2024
Sprint that wraps Fprint

from errors.

Comments (4)

davecheney avatar davecheney commented on August 19, 2024

Thank you for raising this issue. At the moment my position oj adding a sprint wrapper has not changed, for the following reasons

  • it really is trivial to right, and I feel if this package was to be proposed for the stdlib, this function would not make the cut so it's best to get used to living without it now
  • I agree that a string form is more useful than an io.writer form, but as we saw while people want the information as a string, they have conflicting requirements on the format of that string; multiline vs single line, files vs paths, etc. The original version was removed to side step this underspecified requirement.
  • recently errrs in this package grew the ability to record their entire stack trace, but this information is not yet surfaced by this package, solving that problem will impact Fprint (probably replacing it entirely) so adding an sprint helper on top would be short lived.

Thank you for your time

Dave

from errors.

davecheney avatar davecheney commented on August 19, 2024

Urg, please ignore the typos, there is no edit option in the mobile version of github.

from errors.

dancingeek avatar dancingeek commented on August 19, 2024

Thanks for the reply. I will close this issue and await the future changes.

from errors.

davecheney avatar davecheney commented on August 19, 2024

Hello,

I wanted to draw your attention to #37 as a possible replacement for Fprintf and others. #37 is not a complete implementation, but the plan is to defer any formatting or layout decisions to the fmt package, controlled by various formatting modifiers.

from errors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.