-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to express these logic? #2
Comments
Hi there, Good question! You can express logical not with
Currently you need to simulate bit shifts with multiplication. I don’t intend to add bitwise operations into the syntax itself (as I don’t think they fit with the philosophy), but likely as methods of an importable module. Which brings us to the question of
But I haven’t finalized on the details yet. Similar with the math functions you mentioned. Perhaps in the near future! P.S. A somewhat hacky alternative at this time would be to use the js identifiers directly, but is of course, hacky :-P
Thanks. |
这句话看起来真是充满了玄幻的味道 ... 以及说关于 动词用法必须用「欲」 ... 如「欲罷不能」「欲蓋彌彰」等 ... 正体中文不可乱用呀 ... |
Good call @qex ! I'm going to blame it on the input method :-P |
I was thinking about this: |
We are now having stdlibs for Bit Manipulation and Math, check out here: https://github.com/wenyan-lang/wenyan/wiki/Standard-Library-Cheatsheet For module importing: https://github.com/wenyan-lang/wenyan/wiki/Importing Class support is still in the plan, please continue in #31 Thanks. |
a || !b
!a || b
!a && b
a && !b
a << 2
a >> 2
a >> n
a << n
this.
constructor
require()
import
a ** 2
Math.sqrt()
console.table()
The text was updated successfully, but these errors were encountered: