Return-Path: X-Original-To: apmail-river-dev-archive@www.apache.org Delivered-To: apmail-river-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB42E425D for ; Thu, 2 Jun 2011 16:39:52 +0000 (UTC) Received: (qmail 96334 invoked by uid 500); 2 Jun 2011 16:39:52 -0000 Delivered-To: apmail-river-dev-archive@river.apache.org Received: (qmail 96312 invoked by uid 500); 2 Jun 2011 16:39:52 -0000 Mailing-List: contact dev-help@river.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@river.apache.org Delivered-To: mailing list dev@river.apache.org Received: (qmail 96304 invoked by uid 99); 2 Jun 2011 16:39:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 16:39:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of grahnian@gmail.com designates 209.85.161.171 as permitted sender) Received: from [209.85.161.171] (HELO mail-gx0-f171.google.com) (209.85.161.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 16:39:45 +0000 Received: by gxk22 with SMTP id 22so537558gxk.2 for ; Thu, 02 Jun 2011 09:39:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=LjdR5YNNY9N5e/sJVGO5t+5TL983iVXZ/BEpKKNkKUI=; b=Ivplft/leRDPb67kqIIxJ0a1cRQa7fei1rKcTVr8Wbv7HTtkxFm3e+czes9qss2YE0 PW+/JSNFXnXrl5y22XpA/gxZLi1QX5Sf+223yc+oN4yVceOI3NaVdXcD9dXNCMneHed+ xLPSGbJbCBHQfliThSfC7nyyN7gRX/DHeHO9A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Jp16sqKeZ9igAGnrCHD7Gwz3tF7y2pQ/+hGuf8Px3Cd+awqc5+IyH9DYd6F72kIf/r DBFnI8tfHwh/2yx6NzJiaD2l3Oc1xFAjH9Tp4hkz2KjNV6q5FcGwquqnrOFjaH1PYbTc qwwHH6H5+tgRYbZ+wOWbOJemao/aJrleEgrKQ= MIME-Version: 1.0 Received: by 10.236.20.67 with SMTP id o43mr131807yho.66.1307032763842; Thu, 02 Jun 2011 09:39:23 -0700 (PDT) Received: by 10.147.182.7 with HTTP; Thu, 2 Jun 2011 09:39:23 -0700 (PDT) In-Reply-To: References: <4DE6E51F.1020409@zeus.net.au> <4DE6ECAC.6070104@acm.org> <4DE6F582.7010904@zeus.net.au> <4DE70494.7000100@zeus.net.au> <4DE7368F.4080308@zeus.net.au> Date: Thu, 2 Jun 2011 12:39:23 -0400 Message-ID: Subject: Re: correctness, generics, and spaces From: James Grahn To: dev@river.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jun 2, 2011 at 11:58 AM, Dan Creswell wrote: > I recall one of the reasons for introducing generics was because force > of sufficient reasoning proved ineffective such that people would get > runtime casting problems when extracting objects from collections. I find the comparison apt: the choice is making a correct cast in a central location vs. having everyone manually cast. > Regardless we can have an endless debate about this or do some > practical experimentation. So.... We do have a platform for practical experimentation already. The generics branch of the code has the bulk of what's under discussion, though it needs a small patch to eliminate a corner case (again, coming soon). That branch, however, mutates the existing interfaces and classes. If we wish to present both interfaces as options to users, that will have to be changed. Which is entirely doable, if that's the consensus for a next step. jamesG