Re:Native GUI library for Go
by Artemis2 on Friday June 06, 2014 @10:50AM
(#7858180)
Isn't it normal to expect old languages to evolve too, especially when they are pushed forward by companies as huge as Apple? Look at C++ (the same age as Objective-C): C++11 was approved in 2011.
[ Parent
| on HN ]
Swift, Apple's days-old intended replacement for Objective-C, does have generics.
Isn't it about time? I mean, they don't really have to make a brand new language to add generics.
As mentioned elsewhere, Objective-C is mostly dynamically typed, and you can just silently cast id to things, so it doesn't need generics as much as a language like Go, although they certainly could be useful. On the other hand, the dynamic typing makes it slow with generics or not, and if you want to put numbers in collections, you have to go through a very cumbersome boxing process - two of the many things only a new language could resolve.