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
  • 458

Proudly Powered By WordPress