DEV Community

val von vorn
val von vorn

Posted on

"but" operator add value or confusion

Question is too broad for so, but what do you think, would a "but" operator add semantic value or would it add confusion? Why do programming languages lack a "but" operator, when the word is so common to emphasize meaning in the English language?

Top comments (2)

Collapse
 
valvonvorn profile image
val von vorn

But could be an optional no-op token to reduce ambiguity or it could be used instead of brackets. An example, e.g.

SELECT WHERE A=1 BUT NOT B=2
Enter fullscreen mode Exit fullscreen mode

In your opinion, would it make the code more readable or more ambiguous?

Collapse
 
valvonvorn profile image
val von vorn

The question seems to difficult for anyone to answer yet?