Code Monkey home page Code Monkey logo

Comments (7)

Maykeye avatar Maykeye commented on June 3, 2024 2

That's the opposite of readability,as it's impossible to tell without scrolling what is in ID.

If aim was readability it would either be using isalpha (and isigit for numbers) or to have macro/functions like e.g. cpython

from bitwise.

0b01 avatar 0b01 commented on June 3, 2024 1

Switch uses jump table so it's more efficient at the cost of negligible marginal size of binary output.

from bitwise.

Maykeye avatar Maykeye commented on June 3, 2024 1

Amusingly, not necessary. Both gcc and icc use branches
(Also tokenizing is nowhere at the top of compiler's performance botteneck anyway)

So, @thee-engineer , you have the blessing of compilers themselves.

from bitwise.

timmyjose avatar timmyjose commented on June 3, 2024

I would be interested to know about this as well!

from bitwise.

anujbhatt avatar anujbhatt commented on June 3, 2024

Readability, perhaps?

from bitwise.

tommythorn avatar tommythorn commented on June 3, 2024

My guess: it makes character classes immediately obvious and leads a more efficient implementation (especially as the table grows).

from bitwise.

pervognsen avatar pervognsen commented on June 3, 2024

Please reask open-ended questions like this in the forums that will be available in the next day or two. It's a good and valid question, but the issues should be reserved for specific problems. Thank you.

from bitwise.

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.