Skip to content

Frank LaRosa

Just another vanity WordPress site

  • Home
    • Frank’s Vinyl Museum
  • Sample Page
  • Search
  • Menu
×

Browse:

  • Home
  • iOS

Objective-C has the best null handling

January 24, 2022 by flarosa
Objective-C has the best null handling

Objective-C has the best null handling of any object-oriented language. Here’s how it works: If you try to call a member function on a nil pointer, it is treated as a no-op. If the function returns a pointer, nil is substituted for the return value. If it returns a number, you get zero. Since there…

  • continue reading
  • iOS, Programming
  • Leave a Comment on Objective-C has the best null handling
  • 147

Recent Posts

  • If Goofus and Gallant were Programmers
  • Real Programmers
  • ORM Considered Harmful
  • Objective-C has the best null handling
  • My review of a 1989 Meat Loaf concert

Recent Comments

No comments to show.

Archives

  • April 2022
  • January 2022

Categories

  • iOS
  • Java
  • Music
  • Programming
  • Records

Proudly Powered By WordPress