Hacker News new | past | comments | ask | show | jobs | submit login
Objective-C Is the Ugliest Programming Language and a Total Abomination (trevorlasn.com)
5 points by todsacerdoti 6 months ago | hide | past | favorite | 2 comments



This twit is comparing C with backward compatible extensions for object-oriented programming, to a language that is designed with syntactic sugar for OOP from the ground up.

And look, he or she didn't notice that their example of Swift method dispatch is several characters longer. And that's in spite of dropping "With" from "doSomethingWith"!

The Swift example has the same number of brackets and colons, plus extra punctuation not found in The objective C.

  [myObject doSomethingWithParam1:param1 param2:param2 param3:param3];

  myObject.doSomething(param1: param1, param2: param2, param3: param3);


I am sad that Swift wasn't a complete divorce from Obj-C. Swift still retains the keyword args feature that Obj-C had.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: