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,3d6ef988ec3a5ef7 X-Google-Attributes: gid103376,public From: mfb@mbunix.mitre.org (Michael F Brenner) Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator Date: 1998/01/16 Message-ID: <69ntk6$qj8@top.mitre.org>#1/1 X-Deja-AN: 316548825 References: <01bd1e34$1632c2c0$24326489@Westley-PC.calspan.com> <01bd1fc9$99302a00$24326489@Westley-PC.calspan.com> <01bd21ff$7f85e3a0$95fc82c1@xhv46.dial.pipex.com> Organization: The MITRE Corporation, Bedford Mass. Newsgroups: comp.lang.ada Date: 1998-01-16T00:00:00+00:00 List-Id: (discussing using a prefix + operator to change types) > .. in what cases will the extra length really matter .. Using a function call (say, about 10 characters long) versus using a single character (+) to represent the type change is more readable on a single instance of the conversion. The place where the extra length really matters is when you have a lot of input to do, say 10000 lines, then you are saving 100000 key strokes, which could be a lot of data input money. This almost suggests a compromise that unary operators should have a corresponding function name. Use the function name for small numbers (say 10 or fewer) instances. Use the prefix operator when doing large amounts of stuff, like defining large finite state machines, filling in giant arrays, making test cases, defining test scenarios for a package body, etc. Mike Brenner