Comments (7)
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.
Switch uses jump table so it's more efficient at the cost of negligible marginal size of binary output.
from bitwise.
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.
I would be interested to know about this as well!
from bitwise.
Readability, perhaps?
from bitwise.
My guess: it makes character classes immediately obvious and leads a more efficient implementation (especially as the table grows).
from bitwise.
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)
- Missing stdio_osx.ion & time_osx.ion for macOS HOT 2
- TypeInfo generated for undeclared types HOT 2
- Bug with const ptr struct members HOT 3
- Anonymous and ad hoc structs and unions HOT 8
- Problems with literal floating point numbers in #assert HOT 2
- Warnings about `foreign` and `static_assert` being unknown on Linux HOT 3
- Ion macros HOT 2
- Ion conditional compilation HOT 2
- Ion builtin conflicts
- Ion keyword clash HOT 1
- Ion ternaries with string literals on one side
- Ion cast to void**
- ion second try
- size_t isnt usize and usize isnt size_t (at least on Macos) HOT 2
- types cannot be referred by qualified name, when functions can HOT 1
- syntax error: 'cv-qualifier' (TypeInfo type_to_cdecl for const structs containing array) HOT 1
- #static_assert directive does not seem to resolve types
- Commits for day 62 and day 63 HOT 1
- Is this project still alive? HOT 2
- How to build this? HOT 1
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 bitwise.