Git Product home page Git Product logo

Comments (2)

mjul avatar mjul commented on August 22, 2024

Various people have mentioned error cell handling in previous issues and pull requests (e.g. pull request #11). Some people want the errors ignored, other want them replaced by a symbol and other clients may have yet other needs.

So, until now I preferred to just let the errors bubble up to the application.

If you can think of a way to provide pluggable error-handling strategies (for example to silent return error cells as blank, nil or :error) I would be happy to accept a pull request.

Maybe it can be done inside the existing multi-method design.

Another possibility is to move towards more of a state-machine approach so the POI object that is passed to the docjure functions is wrapped in a Clojure data structure which could then also include error handling strategies as higher-order function(s).

For a 2.0 release I prefer the latter, as it would also provide a good basis for making the text formatting stuff less imperative and more functional.

How do you propose to solve it?

from docjure.

nidu avatar nidu commented on August 22, 2024

It looks like it really can be done in multi-method design by just adding a handler for Cell/CELL_TYPE_ERROR. What about returning some kind of record with brief error info? It won't overlap with other cell types. Returning :error or nil can be not enough for a particular task if read-cell aims to satisfy all reading needs.

from docjure.

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.