Comments (4)
These are all cases that require some kind of metadata attached to the node describing its representation; so, this will be part of the rewrite.
Btw, I'm really grateful that you keep discovering these things. Thank you!
from rewrite-clj.
Would it be better to just have a seperate :number tag and to save the input as a string. The trade off really is how much understanding is given to the token and i think a string is the sufficient am the most flexible way to representing data. Something like 2r0000001 is equal to 2r1. This goes for the
On 06/05/2014, at 10:10, Yannick Scherer [email protected] wrote:
These are all cases that require some kind of metadata attached to the node describing its representation; so, this will be part of the rewrite.
Btw, I'm really grateful that you keep discovering these things. Thank you!
—
Reply to this email directly or view it on GitHub.
from rewrite-clj.
Another thing that might be an interesting feature for rewrite is to make it work with tools.analyser.
On 7 May 2014, at 15:55, Chris Zheng [email protected] wrote:
Would it be better to just have a seperate :number tag and to save the input as a string. The trade off really is how much understanding is given to the token and i think a string is the sufficient am the most flexible way to representing data. Something like 2r0000001 is equal to 2r1. This goes for the
On 06/05/2014, at 10:10, Yannick Scherer [email protected] wrote:
These are all cases that require some kind of metadata attached to the node describing its representation; so, this will be part of the rewrite.
Btw, I'm really grateful that you keep discovering these things. Thank you!
—
Reply to this email directly or view it on GitHub.
from rewrite-clj.
The latest releases store the original string in the :token
node, so this should work now.
(z/tag (z/of-string "2r1001")) ;; => :token
(z/sexpr (z/of-string "2r1001")) ;; => 9
(z/string (z/of-string "2r1001")) ;; => "2r1001"
Artifact Coordinates
[rewrite-clj "0.4.3"]
from rewrite-clj.
Related Issues (20)
- Implement equality for seq nodes
- Coerce + sexpr roundtrip of regex pattern fails HOT 3
- chore: review github action triggers
- ci chore: respond to deprecation warning from release workflow HOT 1
- ci chore: respond to macos job failures
- dev/ci chore: npm ci vs npm install
- chore: Karma is deprecated
- barf-forward unexpected behavior HOT 9
- ci chore: clojure deps on windows sporadically fail to download
- `paredit/kill` and `global-find-by-node` work incorrectly HOT 2
- `paredit/wrap-fully-forward-slurp` removes indents HOT 1
- Add `remove` with a movement function HOT 2
- Do not return `nil` zipper HOT 3
- test/ci: add clj-mergetool to lib tests
- ci chore: GitHub Actions macos-latest no longer includes jdk8
- ci chore: codecov job seems unhappy HOT 5
- Add tests for any new Clojure 1.12 syntax/conventions HOT 12
- `^MyType foo` is not recognized as reader sugar HOT 2
- dev: turf anemic pom.xml
- Consider allowing `find-last-by-pos` on non-position tracking zipper HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rewrite-clj.