jpeddicord / askalono

A tool & library to detect open source licenses from texts
Apache License 2.0
256 stars 25 forks source link

Investigate `failure` crate #11

Closed jpeddicord closed 6 years ago

jpeddicord commented 6 years ago

askalono uses a lot of Box<Error>. The failure crate has been making a buzz: https://github.com/withoutboats/failure

This is likely a good error management story for askalono. I haven't done any research into actually implementing this; it's likely not too difficult to do.

davidbarsky commented 6 years ago

Steve Klabnik and Ashley Williams made a good point on Twitter. Libraries that use custom derive (like Failure or Structopt) allow people to have write super-declarative code, where it's feasible to define a struct or enum, add an annotation, and do your thing. It's really nice to not worry about imperative builders anymore!

jpeddicord commented 6 years ago

Done in PR #12, thanks!