« Mocking GWT widgets with GWTMockUtilities | Main | Test-Driven Google Web Toolkit article in the GWT documentation »

March 08, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e55055486e8833011168cbb444970c

Listed below are links to weblogs that reference Pimp My Library: 5.minutes with the Time And Money Library:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Gabriel C

I don't know a thing about the Time & Money library, but if you want to leverage the type system to have a compile time error when you do 2.minutes + 2.months, 2.months shouldn't return a duration. It must be something that can't be added to 2.minutes...

Daniel Wellman

@Gabriel This makes sense. My thought was to create two different RichDuration types; one for a basis in seconds, the other in months. Then implement the + method such that you can only add units of the same type.

Alex Baranosky

I'm really enjoying learning Scala; there is so much it can do, while still staying statically typed. I found your blog from the Cyrus Innovation website; do you use much Scala in your work there?

Daniel Wellman

@Alex We don't use it on any projects right now, but we're considering getting started by writing new tests for an existing Java project in Scala. It seems like a fairly simple way to ease into using the language.

The comments to this entry are closed.