Code Monkey home page Code Monkey logo

Comments (7)

gmalecha avatar gmalecha commented on July 19, 2024 1

I am generally in favor of small libraries, so I would be in favor of moving Show somewhere else.

I don't think that S-expressions solve everything, so I think there is some benefit to more customizable pretty printing library. Perhaps there is some good way to share some of the formatting logic within ceres? I'm thinking of "boxes" and the like.

from coq-ext-lib.

Lysxia avatar Lysxia commented on July 19, 2024

Another option is to deprecate and remove Show altogether. Even if we fixed it, it seems a good candidate to put into its own library.

I recently created coq-ceres as an alternative, using S-expressions instead of strings as a common format that can easily be pretty-printed and parsed.

A proper pretty-printing library also seems like a good idea.

from coq-ext-lib.

gmalecha avatar gmalecha commented on July 19, 2024

@Lysxia Do you think there is some pieces of ceres that could be reused for this?

from coq-ext-lib.

Lysxia avatar Lysxia commented on July 19, 2024

from coq-ext-lib.

gmalecha avatar gmalecha commented on July 19, 2024

Does ceres not generate a string?

from coq-ext-lib.

Lysxia avatar Lysxia commented on July 19, 2024

I'm not sure what you're thinking of. There is a function that converts S-expressions (trees) to strings, but there's not much to be reused from it.

from coq-ext-lib.

gmalecha avatar gmalecha commented on July 19, 2024

I see.

from coq-ext-lib.

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.