LWN.net Logo

XDC2012: Programming languages for X application development

XDC2012: Programming languages for X application development

Posted Oct 11, 2012 19:48 UTC (Thu) by HelloWorld (guest, #56129)
In reply to: XDC2012: Programming languages for X application development by cmccabe
Parent article: XDC2012: Programming languages for X application development

A language with a type system that doesn't support some form of templates or generics? Thanks, but no thanks. And yes, I'm aware that they said they probably want to add generics at some point, but that attitude is misguided. The type system is the fundament of a programming language, and things like parametric polymorphism need to be integrated from the start, and not bolted on as an afterthought.


(Log in to post comments)

XDC2012: Programming languages for X application development

Posted Oct 12, 2012 15:23 UTC (Fri) by nix (subscriber, #2304) [Link]

The way they were bolted on to C++ as an afterthought, you mean? (Bjarne knew he wanted something like templates in C++ when he started work on it, but for some time thought it could be implemented via macros with no changes to the type system necessary. This turned out not to be true.)

It seemed to work quite well there -- though it is true that I can't think of another language where they were bolted on remotely as well.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds