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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e55245590c829bef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 01 Nov 2010 17:36:17 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Beginners question: Compound types, how-to? Date: Mon, 01 Nov 2010 22:45:36 +0000 Reply-To: brian@shapes.demon.co.uk Message-ID: <88guc6ll5hiauv1au07e323bgdq8ki9ep2@4ax.com> References: <86wroy58ff.fsf@gareth.avalon.lan> <86bp695h4x.fsf@gareth.avalon.lan> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-usAQ3vBYjbrZhFC+PA4SAnejdavXsYcBnaB26homX/J3RB1uotnS97i8YhE/xlFzSp5hOjYkEYaBnTL!ooIueIQL3UawKTTuUyLJcFTAuPThdb8RhxPl9LSKIig2VF4g43AxuWzsusFeTZWhbPt/pJuFa9yL!5NU= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2381 Xref: g2news1.google.com comp.lang.ada:15135 Date: 2010-11-01T22:45:36+00:00 List-Id: On Mon, 01 Nov 2010 14:05:02 +0100, Mart van de Wege wrote: >Brian Drummond writes: >> Likewise Str ... String? Strength? Strangeness? Write them in full; >> you'll thank yourself later. If you don't like typing long words, >> either find an editor with an autocomplete function, or learn to use >> "renames". >> >Str = Strength. > >As Florian said, those are domain-specific abbreviations. Anyone who >plays role-playing games will know what they mean, anyone who doesnt >doesn't have any use for my code anyway. If they are as embedded in an rpg-programmer's mind as "abs and "rem" to a numerical programmer, then that's fine. Otherwise... One of the things I really like about Ada is the traceability of what's visible and where it comes from. It really helps understanding, especially when the author has found the right balance of "use pkg_name;" and fully qualifying names "pkg_name.type_name" so you are led directly to the source of "typename" etc. Some people insist on never using "use" clauses, always qualifying names. I can see their point but feel that's going a bit too far... - Brian