[sv-ec] Anonymous Inner Classes

From: Ryan S Warner <ryan.s.warner@seagate.com>
Date: Mon Mar 22 2010 - 13:31:52 PDT

With all the talk of multiple inheritance, I thought I'd bring up another
feature I'd like to have from Java. Anonymous inner classes, they are
fantastic for writing callbacks. I create all sorts of 5-10 line callback
classes for the purpose of connecting transactors to monitors and
scoreboards. Although it's just "syntactic sugar", I think it makes that
kind of code vastly more readable. With the highlight being that it keeps
all of your related thoughts co-located in one place, rather than scattered.

-Ryan

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Mar 22 13:32:01 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 22 2010 - 13:32:13 PDT