This repository has been archived by the owner on Jan 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Create :jnt reader conditional support #123
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a (minimal besides various cleanups) approach to implementing This has the advantage of simplicity and preserving `:clj` forms and reading `:jnt` forms. However its behavior not entirely obvious when both are present. If multiple features match, then the first one wins. Hence: #?(:clj :clj :jnt "nope!") => :clj #?(:jnt "Yeeee" :clj "nope!") => "Yeeee"
Needs reader tests... |
ISeq seq(); | ||
|
||
default Iterator iterator() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍺
arrdem
added a commit
that referenced
this pull request
Apr 9, 2016
Vist 0.2.0 upon the world This release focuses on fleshing Jaunt out as a separate platform atop Clojure, adding support for the `.jnt` file extension and the `:jnt` reader conditional directive. Other changes include the deprecation and automatic refactoring hinting of `use` and `refer`, the addition of `^:uses` metadata fo `AFn` instances in support of future static analysis work and migration to JDK8 for the entire project although few JDK8 features are used at this time. - [#131](#131) Add support for `.jnt` files (@arrdem). - `load-file` now chooses the first file of `.class`, `.jnt`, `.clj`, `.cljc`. - [#129](#129) Emit `^:uses` metadata on `Fn` instances (@arrdem). - [#126](#126) Add reader support for `Infinity`, `NaN` (@arrdem). - [#123](#123) Add support for `:jnt` in reader conditionals (@arrdem). - Update to Java 1.8 - Implement `java.lang.Iterable` over `clojure.lang.Seqable` using a Java 8 interface default method - Add `clojure.lang.RT.union(set, seq):set` - [#122](#122) Catch and print exceptions encountered loading `user.clj` (@arrdem). - [#116](#116) Deprecate `clojure.core/refer` (@arrdem). - Deprecate `clojure.core/refer` - Refactor `clojure.core/refer` to emit a warning describing how to rewrite refer into require. - [#117](#117) Fix typo in arglists (@arrdem). - [#112](#112) Self-refactoring use (@arrdem). - Add `clojure.core/sift`. - Refactor `clojure.core/use` to emit a warning describing how to rewrite use into require/refer. - Refactor out uses of `use`. - [#111](#111) Add a warning when expanding deprecated macros (@arrdem).
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changeset has one primary change: supporting the
:jnt
conditional clause in addition to:clj
.Incidental changes to this end include:
clojure.lang.Seqable/iterator
(Java 1.8 feature)clojure.lang.RT/union [set, coll] -> set
(used in the reader changes)Fixes #68