Replies: 2 comments
-
I meant to write an RFC, not a discussion, but I'd be glad to have a discussion on this topic if anyone's interested. I'm kinda new to RFCs haha, I should've done more reading (though it's arguably esoteric to be expected to read CONTRIBUTING.md when I just want to suggest something, it might help to include a link to it in README.md) Let me open an issue to discuss this before making any pull requests... Feel free to close this post. |
Beta Was this translation helpful? Give feedback.
-
We considered this in the past. Fundamentally what we decided is that having two different syntax options for a single construct adds less value than it adds confusion. Luau also doesn't have unary |
Beta Was this translation helpful? Give feedback.
-
Seeing as there are already C-like operators (ex:
a += 1
as an alias fora = a + 1
), it would be visually pleasing to also allow!=
as an alias for~=
.Also, it would help psudo-code-ness as
~=
usually means "about equal to" in most other contexts.Note: if this feature is added, the majority of people probably won't care/notice, but some might get mad
See https://devforum.roblox.com/t/allow-not-equal-to-operator-in-luau-to-be-written-as/2204843
Beta Was this translation helpful? Give feedback.
All reactions