GithubHelp home page GithubHelp logo

Comments (4)

xsc avatar xsc commented on June 26, 2024

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.

zcaudate avatar zcaudate commented on June 26, 2024

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.

zcaudate avatar zcaudate commented on June 26, 2024

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.

xsc avatar xsc commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.