The Artima Developer Community
Sponsored Link

Java Buzz Forum
Generic type parameter naming A.K.A Line Noise :)

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
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Generic type parameter naming A.K.A Line Noise :) Posted: Jul 17, 2004 4:04 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Generic type parameter naming A.K.A Line Noise :)
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Eric Gunnerson has said why the C# team migrated to single character names for generic type parameters. E.g. From: class Dictionary<Key, Value> to: class Dictionary<K, V> The confusion comes in when you see: public void Process(Key k) Why didn't Microsoft using some form of Hungarian and have gtKey (generic type Key)? :) There is the same issue with Java generics. You look at the JavaDoc for Java 5 and you see lovely things like: Set<Map.Entry<K,V>> Yum :) Is this mess really worth it for generics? I would much rather play with this dense noise: for (order in customers.findAll { it.location.code == "CO" }.orders) { println("order ${order.id} has value ${order.value}") } Giddy up!

Read: Generic type parameter naming A.K.A Line Noise :)

Topic: All available UML Modeling Tools (Free and Priced) Previous Topic   Next Topic Topic: W4T Eclipse and Yoxos - like MyEclipse

Sponsored Links



Google
  Web Artima.com   

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