GithubHelp home page GithubHelp logo

Comments (6)

metasim avatar metasim commented on September 26, 2024

Just saw RowDecoder.either[A,B]... is there a way of co-opting that to get what I want?

from kantan.csv.

nrinaudo avatar nrinaudo commented on September 26, 2024

Short answer: no.

Long answer: v0.1.9 has exactly what you want, an error type that's actually useful. If you were to attempt to parse abcd as an Int cell, for instance, you'd get a Failure(TypeError(e)), where e is the NumberFormatException that was thrown.

I'm not entirely sure when v0.1.9 will be ready to release, but that's what I'm working on at the moment. Let me know if this is a blocking issue for you and I'll see if I can speed things up or release an intermediate version.

from kantan.csv.

metasim avatar metasim commented on September 26, 2024

Not a blocking issue, but would be nice long term.

Sorry I didn't say this before: This is a fantastic library.... CSV for Scala, done right. I've used product-collections and shapeless to do this before, and your architecture is superior.

from kantan.csv.

nrinaudo avatar nrinaudo commented on September 26, 2024

I agree that it'd be nice - so much so, in fact, that it's already implemented.

Glad that you enjoy kantan.csv, I'm quite happy with the direction it's headed mysef :)

Do join the gitter channel if you have questions that you're not sure qualify as issues - I'm usually around and happy to help.

from kantan.csv.

nrinaudo avatar nrinaudo commented on September 26, 2024

v0.1.9 (available as a SNAPSHOT) reworks error handling and should fix this. Could you check whether the new implementation matches what you had in mind and, if so, close this issue?

from kantan.csv.

nrinaudo avatar nrinaudo commented on September 26, 2024

I'll consider this closed for now, feel free to reopen if I'm wrong.

from kantan.csv.

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.