What is the best language to replace objective-c?

After reading Is a virtual machine for Cocoa programming inevitable? , I would like to know what language is in your mind, if replacement really happens, and why?

Correctable language and API complaints include

  • lack of tuples, slices, maps, or associations at the syntax level;
  • lack of programming patterns;
  • lack of namespaces;
  • lack of default parameters for methods;
  • lack of redefinition / overload of the operator;
  • leaks and premature collection by the garbage collector;
  • dictionary, encoded named conventions;
  • lack of package management;
  • lack of ready support for business APIs such as REST, SOAP, SQL, etc.
  • You can even change the often called square bracket method syntax if necessary.

ps one language per answer please.

+3
source share
4 answers

How valid are the complaints:

Correctable language and API complaints include

  • lack of tuples, slices, maps, or associations at the syntax level;

So what?

  • lack of programming patterns;

Are these C ++ templates? Then use Objective-C ++. Personally, I think this is a plus that we do not have them in Objective-C.

  • lack of namespaces;

It's really. I really liked the namespaces.

  • lack of default parameters for methods;

This is another feature I'm glad not in Objective-C

  • lack of redefinition / overload of the operator;

This is another feature I'm glad not in Objective-C

  • ;

.

  • , ;

. . OTOH, , , . .

  • ;

.

  • -API, REST, SOAP, SQL ..

.

  • , .

, . C, , .

- Objective-C, . : Objective-C.

+5

MacRuby, Ruby, LLVM Objective-C ( Cocoa, NSString, NSArray). ObjC, MacRuby. , ObjC , JVM Java C, Java.

, , Objective-C, - .

+2

Objective-but-not-C, , Objective-C, . , Apple (, ) Objective-C.

Objective-C Microsoft Managed ++.NET - ++. , Apple LLVM , Microsoft .NET CLR, , Ruby, Python .., "Objective-but-not-C".

0

Swift! Swift Objective C.

, , , .

, , , .

Garbage Collection , , , .

, , , , Swift, , .

Objective C, , , , -.

.... Swift 4 , python, .

0

Source: https://habr.com/ru/post/1754969/


All Articles