From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e180de737833224 X-Google-Attributes: gid103376,public From: "David Taylor" Subject: Re: Ada Java question => clarification Date: 1997/03/01 Message-ID: #1/1 X-Deja-AN: 222451369 Distribution: world References: <33167E7E.4351@fn3.freenet.tlh.fl.us> <33174046.4A25@fn3.freenet.tlh.fl.us> <33174B1A.5353@watson.ibm.com> Organization: at home Newsgroups: comp.lang.ada Date: 1997-03-01T00:00:00+00:00 List-Id: In article <33174B1A.5353@watson.ibm.com>, "Norman H. Cohen" wrote: >Kendal Van Dyke wrote: > >> Ok, after changing the case statement to an if statement, I STILL had to >> use the full name (java.awt.event.[up, down, left, right, etc]) in order >What you need is a with clause for java.awt.event and a use clause for >java.awt. A use clause for java.awt.event allows you to abbreviate >-- >Norman H. Cohen >mailto:ncohen@watson.ibm.com >http://www.research.ibm.com/people/n/ncohen I would like to make a case here for avoiding the "use" except in those special locations where it otherwise obscures the logic (e.g.: evaluating a complicated math expression). Even there, the "use" can be restriced to the local block. Speaking as one who has spent a lot of time modifying existing code, the "use" can really confuse the issue. Surely, more keystrokes cannot be that big of a deal. Just my 2 cents worth. dave taylor