Giter Site home page Giter Site logo

Comments (1)

greglook avatar greglook commented on August 17, 2024

One of the original motivations for writing Puget was that Clojure's built-in print-method and kin are subject to global modification. I needed a printer that was canonical and that also meant I needed to ensure it would be fully configurable with a local dispatch function. Later on, this expanded to colorization and the broader use as a REPL pretty-printer. Which is perhaps a long way of saying that deferring to print-method implementations would go against that original design.

Given the above, there's no way to globally change Puget's behavior with respect to your custom types, but you can use its dispatch mechanism to choose a different representation within a specific REPL or project. I'm not an emacs user, so I'm not familiar with how you would wire this up in CIDER, but as an example, whidbey has the notion of escape types which are rendered with print-method instead of Puget's normal formatters. You should be able to configure something similar.

Happy to help with any configuration questions along that route!

from puget.

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.