Skip to content

Conversation

@NoahTheDuke
Copy link
Contributor

See #71.

clojure.core/hash-unordered-coll has been around since 1.6 and ordered only supports 1.8+ so there's no need to check for its existence anymore.

See [clj-commons#71](clj-commons#71).

`clojure.core/hash-unordered-coll` has been around since 1.6 and ordered only
supports 1.8+ so there's no need to check for its existence anymore.
;; We could use compile-if technique here, but hoping to avoid
;; an AOT issue using this way instead.
(def hasheq-ordered-set
(or (resolve 'clojure.core/hash-unordered-coll)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is actually OK on the top level

Copy link
Contributor

Choose a reason for hiding this comment

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

I thought there was a similar case as with the ordered map, a runtime require, but that's not true it seems

Copy link
Contributor

Choose a reason for hiding this comment

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

So there is no need for this PR and the bb PR seems good then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, glad to hear the bb PR is unblocked. I think this is a worthwhile change anyway, given that we no longer support the versions the workaround exists for, but I'll wait for some others to take a peek before merging.

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.

2 participants