Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3721632
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:37:24+00:00 2026-05-19T05:37:24+00:00

I think or is keyword in c++. It might be that I’ve been doing

  • 0

I think or is keyword in c++.

It might be that I’ve been doing too much python code recently but I find or is more readable than || and xor much more readable than ^.

Is it a good idea to use the word alternatives to the symbolic operators?
Why don’t I see them used more?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T05:37:25+00:00Added an answer on May 19, 2026 at 5:37 am

    Is it a good idea to use the word alternatives to the symbolic operators?

    Completely depends on the target audience for your code ­– both people and tools. People can be unused to them, and some tools don’t recognize them. (Sometimes those tools use <ciso646> to define them as macros.)

    I’ve started to use “and” and “or” more, especially when switching between C++ and Python, and it has been more readable. The bit of extra consistency between languages matters more than I first thought it would, but more importantly, && and || are control structures and not operators (i.e. short-circuiting), thus making them words differentiates from operators.

    (Yes, technically they’re operators in C++, but they’re more similar to if, else, return, while, and so forth than +, -, *, and other operators. The comma and conditional operators are similarly control structures, and it probably isn’t a coincidence they are often found confusing, or at least less readable than separate statements and if/else, respectively.)

    However, I very rarely use them in new code written for SO, for example, because I’ve not yet encountered a question where bringing up this side issue was more important than being readable to SO’s C++ audience.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I have a basic understanding of this, but am hoping that someone
Guids are created using the new keyword which makes me think it's a reference
Think about doing this: import matplotlib.pyplot as plt plt.plot(x_A,y_A,'g--') plt.plot(x_B,y_B,'r-o') plt.show() How would you
I think that handlers in android are tools to get different objects that are
I think I've figured out the problem. I'm using a IP webcam stream, doing
I recently discovered Python's property built-in , which disguises class method getters and setters
I am increasingly aware that my code in any single file can often span
This might get closed, but I'll try anyway. I was showing a VB6 programmer
I feel like I've been all over the web for this but haven't found
Suppose we have buyers and sellers that are trying to find each other in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.