Skip to content

Feature/add d20#11

Open
linuss wants to merge 5 commits intokalouantonis:masterfrom
linuss:feature/add-d20
Open

Feature/add d20#11
linuss wants to merge 5 commits intokalouantonis:masterfrom
linuss:feature/add-d20

Conversation

@linuss
Copy link

@linuss linuss commented Nov 13, 2017

No description provided.

Linus Schoemaker and others added 5 commits November 3, 2017 15:53
:dependencies [[org.clojure/clojure "1.8.0"]
[clojail "1.0.6"]]
[clojail "1.0.6"]
[org.clojure/core.match "0.3.0-alpha5"]]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer it if you didn't pull in core.match for a simple feature like this.

(if (nil? n) [:ok 1]
(try
(let [result (Integer/parseInt n)]
(cond
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just return the string directly and not bother with fancy error handling.

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.

3 participants