ruby 15 Sep 2005 02:28 pm
Static or Dynamic
I’ve read Dave Thomas’s view that many who are averse to a dynamic language are quite used to casting their objects in Java when they are retrieved from a collection. In doing some refactoring and cleanup today I came across this example:
invcAmnt = (BigDecimal)(BigDecimal)invoiceMap.get(agreementId);
When you really, really want to be sure.