Skip to content

Conversation

macintux
Copy link
Contributor

@macintux macintux commented Aug 4, 2013

I found the current approach to julian/5 to be a bit difficult to explain and understand.

This feels much more natural to me (but, admittedly, I'm only a year into playing with Erlang, so take that with a grain of salt).

It reflects the style advocated by @gar1t in his blog post Solving Embarrassingly Obvious Problems In Erlang, which doesn't fit all that well with other examples given.

Note: there's also a bug fix buried in here: the last integer in the argument list in the spec for julian/5 should be integer() for dialyzer to work properly.

@macintux
Copy link
Contributor Author

Another strike against my solution: 7-4 isn't really compatible with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant