# My very first Julia package: Simpson.jl

**URL:** https://discourse.julialang.org/t/my-very-first-julia-package-simpson-jl/74257
**Category:** New to Julia
**Created:** [January 8, 2022, 9:18pm UTC](https://discourse.julialang.org/t/my-very-first-julia-package-simpson-jl/74257 "2022-01-08T21:18:48Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![jacobusmmsmit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jacobusmmsmit/32/217669_2.png) [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)
#### Post date: [January 8, 2022, 10:04pm UTC](https://discourse.julialang.org/t/my-very-first-julia-package-simpson-jl/74257/4 "2022-01-08T22:04:21Z")

</div>

Looks great for a first package. I especially love the documentation, if only all smaller/obscure packages were this well documented 😉

One suggestion is that instead of using `error` you should be more specific with which _type_ of error is being thrown. For example, the first error says: `error("If given, length of x must be the same as y.")` which is a problem with the user’s input, so it’s an `ArgumentError`.

Some previous discussion on this can be found [here](https://discourse.julialang.org/t/error-vs-throw-argumenterror/18915).

---

_[View the full topic](https://discourse.julialang.org/t/my-very-first-julia-package-simpson-jl/74257)._
