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,4ee5611d3fbf05b7 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Enumeration literal visibility and use type Date: 1998/05/27 Message-ID: #1/1 X-Deja-AN: 357052156 References: <6kej65$dnh$1@hermes.seas.smu.edu| <6kejt5$75u@gcsin3.geccs.gecm.com> <6kensr$fqq$1@hermes.seas.smu.edu> <6kf0r3$isj$1@mulga.cs.mu.OZ.AU> <6kgh82$92n@gcsin3.geccs.gecm.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 896294704 896 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1998-05-27T00:00:00+00:00 List-Id: John McCabe says <> If you think that explicit module qualifiers on identifiers are ugly, then you definitely want to consider using a real "use" package clause. Basically what is going on with use type is that there are a significant number of people who don't mind writing, or even prefer to write: package_name.identifier; and of course enumeration literals are just a special case of identifiers. But they draw the line at package_name."+" (x,y); Basically the issue here is that people want to know the package where something comes from at a glance, and hence don't like use package clauses, but their desire to see the package where something comes from at a glance is not strong enough to overcome their disgust at having to go to the ugly prefix notation for binary operators. It's just a matter of trading off syntactic ugliness vs explicit qualification. I always have trouble understanding this distinction, but I *SURELY* cannot understand that someone would not mind writing: x := red; where red is an enuemration literal, but would not want to write x := colorget; where colorget is some other function than an enumeration literal. To want to qualify in the second case: x := pkg.colorget; but to object to x := pkg.red; seems very inconsistent to me. I do understand the use type argument, but surely to make it apply to enumeration literals and not other primitive operations would be very odd indeed.