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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: How to make Ada popular. Get rid of ";" at end of statement. Date: Sat, 20 Jul 2019 14:14:47 -0700 Organization: None to speak of Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="d2f6a74cfcae0eebeef5e76bd6f67f0a"; logging-data="30982"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19MnAuvMfy4jLwuYt08rFYc" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:WkxoeeQUKRTM5GmTmsy/Rz1LNUA= sha1:1XGYmE8arHMhWCVUc2Nzo/fmkbA= Xref: reader01.eternal-september.org comp.lang.ada:56906 Date: 2019-07-20T14:14:47-07:00 List-Id: Stephen Davies writes: > On Friday, 19 July 2019 22:42:00 UTC+1, Nasser M. Abbasi wrote: >> According to https://hackernoon.com/best-coding-languages-to-learn-in-2019-b49b49250a25 >> >> ... I'd like to make a suggestion: Remove ";" from Ada. >> > > I don't see this as being a problem given the numerous popular > languages that do use semicolons. > > But I do think that maybe Ada would be less off-putting to people > who know other languages if it adopted some constructs that are > now standard in nearly all languages, e.g.:- > > Allow 0x, 0b and 0o for Hex, Bin and Octal numbers > (with an optional extra parameter in Integer_IO.Put) > > Allow == for equality, though obviously only allow := for assignment > (maybe make this the preferred form, similar to how > Mixed_Case took over from UPPER_CASE) I think that having two different symbols for equality, with no guidance for which one to use in what circumstances, would add no value. I can see an argument for using := for assignment and == for equality, with = being a syntax error (or perhaps used for something else), but the time to do that would have been when the language was first being designed. Likewise for alternatives for based literals. > I also think that the annoying leading-space on Integer'Image is > off-putting to newbies too because it's those early programs where > you often just want to embed a number in an output string quickly. > Would it really be that hard to add a Trim_Image attribute or add > a Width parameter to Integer'Image? I also find the leading space annoying. I don't think adding Integer'Image(42, Width => 0) would break anything. (TeleSoft's Ada compiler had a 'Extended_Image attribute that handled this and other things with optional named parameters.) > Finally, not to be entirely negative, I realy like the new @ feature > and hope it makes people looking at Ada who are used to +=, etc > think "ooh, that's nice". -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */