Guido sees the light: PEP 8 updated

Ian Kelly ian.g.kelly at gmail.com
Sun Apr 17 09:38:08 EDT 2016


On Sat, Apr 16, 2016 at 4:30 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
>
> Java generics ruined a perfectly good language. I mean:
>
>     Map<AccountManager, List<Customer>> customersOfAccountManager =
>         new HashMap<AccountManagerImpl, LinkedList<CustomerImpl>>();
>
> where classic Java would have:
>
>     Map customersOfAccountManager = new HashMap();

The diamond operator in JDK 7 makes this a lot more tolerable, IMO:

    Map<AccountManager, List<Customer>> customersOfAccountManager =
        new HashMap<>();



More information about the Python-list mailing list