From: Keith Thompson <kst-u@mib.org>
Subject: Re: How to make Ada popular. Get rid of ";" at end of statement.
Date: Sat, 20 Jul 2019 14:14:47 -0700
Date: 2019-07-20T14:14:47-07:00 [thread overview]
Message-ID: <lnr26kmmrc.fsf@kst-u.example.com> (raw)
In-Reply-To: ba381293-9d81-4b3d-9907-60d288d712cb@googlegroups.com
Stephen Davies <joviangm@gmail.com> 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 <http://www.ghoti.net/~kst>
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
next prev parent reply other threads:[~2019-07-20 21:14 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-19 21:41 How to make Ada popular. Get rid of ";" at end of statement Nasser M. Abbasi
2019-07-19 22:09 ` Dmitry A. Kazakov
2019-07-20 6:47 ` J-P. Rosen
2019-07-20 8:42 ` Paul Rubin
2019-07-21 5:11 ` J-P. Rosen
2019-07-23 9:24 ` darek
2019-07-20 17:08 ` Stéphane Rivière
2019-07-20 13:46 ` Dennis Lee Bieber
2019-07-20 0:47 ` Matt Borchers
2019-07-20 13:54 ` Dennis Lee Bieber
2019-07-20 14:40 ` Stephen Davies
2019-07-20 15:45 ` Optikos
2019-07-20 17:24 ` joviangm
2019-07-20 19:10 ` Optikos
2019-07-20 19:17 ` AdaMagica
2019-07-20 22:25 ` Paul Rubin
2019-07-20 23:08 ` Optikos
2019-07-20 22:24 ` Paul Rubin
2019-07-20 21:14 ` Keith Thompson [this message]
2019-07-23 21:58 ` Ingo M.
2019-07-23 23:56 ` Paul Rubin
2019-07-24 14:06 ` John Perry
2019-07-24 14:51 ` Ingo M.
2019-07-24 15:29 ` Dmitry A. Kazakov
2019-07-25 10:58 ` Ingo M.
2019-07-25 12:16 ` Dmitry A. Kazakov
2019-07-26 10:54 ` antispam
2019-07-26 11:35 ` Niklas Holsti
2019-07-26 16:07 ` Simon Wright
2019-07-24 19:52 ` Ingo M.
2019-07-24 20:31 ` J-P. Rosen
2019-07-25 13:34 ` gautier_niouzes
2019-07-25 7:26 ` Maciej Sobczak
2019-07-25 10:47 ` Ingo M.
2019-07-25 16:18 ` John Perry
2019-07-25 18:31 ` Dennis Lee Bieber
2019-07-26 18:04 ` Shark8
2019-07-26 18:53 ` Niklas Holsti
2019-07-26 19:16 ` Niklas Holsti
2019-07-27 1:27 ` Lucretia
2019-07-27 1:34 ` Keith Thompson
2019-07-27 3:11 ` Randy Brukardt
2019-07-27 4:06 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox