Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Futures for Objective-C?

Has anyone implemented Futures in Objective-C? I (hopefully not naively) assume that it should be reasonably simple to wrap NSInvocations in a nice API?

like image 378
Frank Shearar Avatar asked Mar 25 '10 14:03

Frank Shearar


People also ask

Is Objective-C still used in 2022?

There are a lot of indicators telling us there's still a ton of legacy Objective-C code, both from Apple and from other developers, that's still in use.

Is Objective-C outdated?

Though mature and time-tested, Objective-C is now becoming obsolete and is often replaced by modern Swift. A relatively young open-source language, Swift was specifically developed by Apple for iOS and macOS.

Is Objective-C still supported by Apple?

While Objective-C is still supported by Apple and will likely not be deprecated anytime soon, there will be no updates to the language. Objective-C is as good as it's ever going to get.

Should I learn Obj C or Swift?

If you want to get work done, Objective-C is the way to go. Swift is the new kid on the block, but it's still a kid. If you want to get work done, Objective-C is the way to go. At the time of writing, Apple's software development kits are primarily written in C and Objective-C.


1 Answers

Mike Ash has implemented Futures using Blocks:

  • http://www.mikeash.com/pyblog/friday-qa-2010-02-26-futures.html
  • http://www.mikeash.com/pyblog/friday-qa-2010-03-05-compound-futures.html
like image 101
Dave DeLong Avatar answered Sep 19 '22 10:09

Dave DeLong