Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Generics: Just Say No
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generics: Just Say No



I'd like to preemptively suggest that generics/templates have no place in a Smalltalk-derived language. They only belong in type-paranoid languages like C++; they don't even really belong in Java, though Java's getting them because the C++-heads managed to clamor for them loudly enough.

I think instead of generics/templates, Objective-C deserves something more akin to Smalltalk blocks (similar to Lisp lambdas). These present a completely different way of working with collections; instead of treating collections as almost meaningless containers, it allows you to treat them as objects in their own right that can do things to the things they contain.

-- Chris

--
Chris Hanson <email@hidden>
bDistributed.com, Inc.
Outsourcing Vendor Evaluation
Custom Mac OS X Development
Cocoa Developer Training
_______________________________________________
objc-language mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/objc-language
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.