The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Generics? We don't need no stinking generics!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Generics? We don't need no stinking generics! Posted: Nov 14, 2005 11:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Generics? We don't need no stinking generics!
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Jim Menard turns away from the static language zone after pondering the hack job that Sun did on generics. Here's a Smalltalk version of the code he posted in Ruby and Java:


initialize: aList
     list := aList.

add: aThing
     list add: aThing.

handle
    list do: [:eachItem | "code to do stuff here"].

The Smalltalk code here, and the Ruby code over there look pretty much the same, while the Java code takes up more space and is more opaque. It's an amusing thing to watch - the Java and C# communities are trying to add the power of languages like Ruby and Smalltalk, but - given the constraints of what they are starting with, it just ends up being so much more baroque complexity.

Read: Generics? We don't need no stinking generics!

Topic: It just got worse for Sony Previous Topic   Next Topic Topic: Advertising Gap in the Content Arena

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use