<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv" -->

---
title: Is Objective-C BOOL a boolean type? It depends | daily.dev
description: This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple...
canonical: https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Is Objective-C BOOL a boolean type? It depends | daily.dev
og:description: This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple...
og:url: https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv
og:image: https://api.daily.dev/og/posts/4HsyYNhuv.png
og:image:alt: Is Objective-C BOOL a boolean type? It depends
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Hacker News](https://daily.dev/sources/hn)

[Read post](https://api.daily.dev/r/4HsyYNhuv)

# [Is Objective-C BOOL a boolean type? It depends](https://api.daily.dev/r/4HsyYNhuv "Go to post")

This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple Silicon and Intel Macs and provides examples of unexpected behavior.

[#general-programming](/tags/general-programming "Check all #general-programming posts")[#objective-c](/tags/objective-c "Check all #objective-c posts")

Jan 10, 2024•11m read time•From [jviotti.com](https://api.daily.dev/r/4HsyYNhuv "jviotti.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3b0b4312c27e30fdb7c70a14de403261?_a=AQAEufR)](https://api.daily.dev/r/4HsyYNhuv "Go to post")

Table of contents

[An example of unexpected behavior](https://api.daily.dev/r/4HsyYNhuv?a=an-example-of-unexpected-behavior "An example of unexpected behavior")[Exploring the Objective-C runtime](https://api.daily.dev/r/4HsyYNhuv?a=exploring-the-objective-c-runtime "Exploring the Objective-C runtime")[Fiddling with \_\_OBJC\_BOOL\_IS\_BOOL](https://api.daily.dev/r/4HsyYNhuv?a=fiddling-with-%5F%5Fobjc%5Fbool%5Fis%5Fbool "Fiddling with __OBJC_BOOL_IS_BOOL")[Digging deeper into LLVM](https://api.daily.dev/r/4HsyYNhuv?a=digging-deeper-into-llvm "Digging deeper into LLVM")[Summary](https://api.daily.dev/r/4HsyYNhuv?a=summary "Summary")

17 Impressions

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Hacker News's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn)](https://daily.dev/sources/hn)

[Hacker News](https://daily.dev/sources/hn "https://daily.dev/sources/hn")

Hacker News is a community-driven platform for sharing and discussing technology news, startups, and... Read more

17.5K Followers

•

142.3K Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Is Objective-C BOOL a boolean type? It depends","url":"https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv"},"datePublished":"2024-01-10T18:20:19.673Z","dateModified":"2024-01-27T02:21:58.025Z","description":"This article explores the Objective-C BOOL type and how it is defined on different Apple platforms. It discusses the differences in defining BOOL on Apple...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3b0b4312c27e30fdb7c70a14de403261?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3b0b4312c27e30fdb7c70a14de403261?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/is-objective-c-bool-a-boolean-type-it-depends-4hsyynhuv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,objective-c","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"Is Objective-C BOOL a boolean type? It depends"}]}
```

