Git Product home page Git Product logo

Comments (6)

kpy3 avatar kpy3 commented on August 23, 2024

Hm, jsx works well with explicit_end option.

from jsx.

talentdeficit avatar talentdeficit commented on August 23, 2024

I'm happy you found the solution, but this behaviour is inconsistent with what I want jsx to do. I'm going to make it more intuitive. Thanks for finding it

from jsx.

talentdeficit avatar talentdeficit commented on August 23, 2024

the decoder is now much smarter about what's unambiguously incomplete and what is not. you should no longer need the explicit_end flag for cases that aren't ambiguous

Eshell V5.9.1 (abort with ^G)
1> {incomplete, F} = jsx:decode(<<"{"library": "jsx", "awesome":0">>).
{incomplete,#Fun}
2> F(<<".21}">>).
[{<<"library">>,<<"jsx">>},{<<"awesome">>,0.21}]

from jsx.

kpy3 avatar kpy3 commented on August 23, 2024

It works for integer() too, thanks a lot.
Is develop brach is stable enough for production use or should I wait for merge this patch into master?

from jsx.

talentdeficit avatar talentdeficit commented on August 23, 2024

this is the only significant difference between develop and master so it should be safe to use but there could be lurking edge cases i haven't considered. if you don't use explicit_end ever it's definitely safe

from jsx.

kpy3 avatar kpy3 commented on August 23, 2024

Ok, I'll try, thanks.

from jsx.

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.