Replies: 1 comment 2 replies
-
Thank you for these suggestions! How do you think it should look like in context of Toit? Here is a simple example of low-level code with shifts and masks: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This seems like a good time and place to propose higher-level bitwise operations, of the sort often needed for device interfacing and the like. Not too long ago, I put together this (without Toit or any specific language in mind).
https://dubinko.info/blog/2021/10/low-level-bit-twiddling-in-high-level-languages/
Even if the proposed syntax doesn't work, this seems like an area ripe for innovation.
Welcome any thoughts...
Beta Was this translation helpful? Give feedback.
All reactions