Posts Tagged ‘closures’
Generics are at once the most welcome, easy to understand and most perplexing feature added to Java since… well ever! I couldn’t imagine life without them, but like anything in type theory they are at times confoundingly opaque. Here are some all-too-common misconceptions about Java Generics and Generic types in general: Set<Child> is a subtype […]
Filed under: 1 | Leave a Comment
Tags: closures, generics, guice, java, type system, type theory
Thoughts on CICE (closures?)
22Mar08
CICE is a proposal by Doug Lea, Josh Bloch and ‘Crazy’ Bob Lee. It is being touted as a “closures” proposal for Java 7 alongside Neal Gafter’s BGGA (for instance). Here are some thoughts I had after reading their document: So basically, CICE is syntactic sugar for anonymous classes. In Guice parlance, the following: bind(Service.class).toProvider(new Provider<Service>() { public Service get() […]
Filed under: 1 | 4 Comments
Tags: closures, guice, haskell, lambda, scheme, type system