Code Monkey home page Code Monkey logo

Comments (3)

fasterit avatar fasterit commented on May 30, 2024 1

A number plus a (given, allocated) operator should not make a legal word. Too much risk for confusion, not?
3.5 8* will always mean "3.5 * 8" (in infix), never something else.

from clac.

soveran avatar soveran commented on May 30, 2024

I still don't have a solution for this. The last version pushes nan to the stack when you type a non-existent word that starts with a number (like 8* in the example). The main problem I have is that 8* could be a legal word, and as there's a feature to define custom words this could be problematic. But I insist that I find the concern legitimate, and that's why I made sure nan is pushed in later versions when such construction is encountered.

from clac.

soveran avatar soveran commented on May 30, 2024

Right now, 8* will be displayed as nan, so this partially solves the issue. As the input is parsed as shell input, it would complicate the code to parse it differently for that special case. I think this is a good compromise and I hope you understand <3

Closing the issue for now, and thanks again for your input.

from clac.

Related Issues (16)

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.