Comments (3)
hyperbolic "For a library this isn't useful"
I agree though that a nice exception is the way to go
On Fri, Apr 22, 2011 at 9:15 AM, ericbmerritt
[email protected]
wrote:
For a library this isn't useful, it would be better to throw an
exception with relevent information.Reply to this email directly or view it on GitHub:
#5
Martin Logan
Erlang & OTP in Action (Manning) http://manning.com/logan
http://twitter.com/martinjlogan
http://erlware.org
from erlware_commons.
I don't think its hyperbolic though I should, perhaps, have explained better.
Library users need to be able to choose to handle a specific exception that originates in a specific place. A simple badmatch removes that option, making it difficult for library users to do something reasonable in response to that exception case. Perhaps I should have said, its not optimal for a library, but I actually don't consider it useful.
from erlware_commons.
The latest set of changes has changed this behaviour so this no longer applies.
from erlware_commons.
Related Issues (20)
- Does not compile with newest rebar3 HOT 1
- Incorrect ISO 8601 formatting
- Hex.pm versioning does not seem to match tags
- build ec_plists.erl failed HOT 1
- Discrepancy between hex.pm vs. the COPYING file HOT 2
- please tag next version (0.23.0 ?) HOT 14
- ec_date:parse not parsing microseconds when timezone offset is given
- Git tag 1.0.5 missing? HOT 1
- ec_file:copy fails for not owned source file with OTP 21-rc2 HOT 9
- runmany_wrap doesn't actually call the passed function
- ec_semver:parse() incorrectly parsing "pre-release identifier" containing hyphen HOT 6
- Warnings emitted on OTP 24 prevent Rebar 3 bootstrap HOT 1
- Badarg error while performing rebar cover HOT 1
- A new tag is needed by erlang/otp 24.0-rc1
- Request for Hex.pm publication HOT 5
- ec_cmd_log doesn't support unicode chars
- ec_date:format() incorrectly formating 'G' in the format parameter string
- The pattern <State, Color, 'true', Msg> can never match the type <_,99 | 103 | 109 | 114,'false',_> HOT 2
- Unknown function compile:forms/2 HOT 3
- Upcoming improvement tasks HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erlware_commons.