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

  • Home
  • SEARCH
  • 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 8502563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:31:13+00:00 2026-06-11T01:31:13+00:00

Possible Duplicate: What is this double underscore in Cocoa I’ve seen a variety of

  • 0

Possible Duplicate:
What is this double underscore in Cocoa

I’ve seen a variety of Core Data code examples that use two underscores instead of one. I am aware of the advantages of iVars and using _variableName…But is there a particular reason/advantage for using two instead of one? such as __fetchedResultsController = …

  • 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-06-11T01:31:15+00:00Added an answer on June 11, 2026 at 1:31 am

    There are no real reasons to use a double underscore.

    I will say that I’m not a fan of them though, because some things in Objective-C use them, such as:

    __block or __unsafe_unretained

    When I see the __, I tend to think of it firstly as a decorator that Apple has defined. If anything, it adds an extra second of thought to it, whereas the single underscore is universally understood to be a class’ iVar.

    I’d suggest just using _.

    From the accepted answer to “What is this double underscore in Cocoa?”:

    C compilers (and by extension Objective-C) reserve names beginning with two underscores and a capital letter for use by the compiler vendor, giving them a reserved namespace to use for global variables and functions used to implement standard libraries, or to introduce new non-standard keywords like __block.

    A summary of the ANSI C standard says:

    External identifiers beginning with an underscore are reserved for library usage.

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

Sidebar

Related Questions

Possible Duplicate: Why do this Ruby object have two to_s and inspect methods that
Possible Duplicate: Why is this code invalid in C#? Conditional operator cannot cast implicitly?
Possible Duplicate: Why does this intentionally incorrect use of strcpy not fail horribly? Below
Possible Duplicate: When to Use Double or Single Quotes in JavaScript Difference between single
Possible Duplicate: Floating point inaccuracy examples double a = 0.3; std::cout.precision(20); std::cout << a
Possible Duplicate: Double Negation in C++ code. I am working with production code where
Possible Duplicate: how to rotate this openGl code… below is my code and it
Possible Duplicate: Counting inversions in an array This is a programming question that I
Possible Duplicate: Double Negation in C++ code. I'm reading a code base, and find
Possible Duplicate: Double Tap -> Zoom on Android MapView? I have an Activity that

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.