in: infoq
It seems like LINQ is a Anders monopoly. Anders Noras introduced the Quaere library, billed as LINQ for Java, last week at JavaZone.
An example of retrieving a list of product name’s from a list of products is:
Listproducts = Arrays.asList(Product.getAllProducts());
IterableproductNames =
from("p").in(products).
select("p.getProductName()");
Oops, it seems like typed checking is out. Not really LINQ in an language extension way, is it?
No comments:
Post a Comment