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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: a new language, designed for safety ! Date: Sat, 14 Jun 2014 21:02:06 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1402308235.2520.153.camel@pascal.home.net> <85ioo9yukk.fsf@stephe-leake.org> <9qednXOIGNDuLQXORVn_vwA@giganews.com> <1872904482424209024.314619laguest-archeia.com@nntp.aioe.org> <810507a4-427e-42bb-a468-e5939a4470db@googlegroups.com> <9qbfr6yf0gnb.182y1qs9eigz4$.dlg@40tude.net> Injection-Date: Sat, 14 Jun 2014 21:02:06 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="5121"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/7AkpHY6eGkGMPXj+nAjgWqtuJ6MhIKg=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:icOsIPQbVcWO+dnK95mceZF0FTI= Xref: news.eternal-september.org comp.lang.ada:20305 Date: 2014-06-14T21:02:06+00:00 List-Id: On 2014-06-13, Robert A Duff wrote: > "Dmitry A. Kazakov" writes: > >> 1. From the language design POV, everything possible must be moved out the >> language into the library. If Ada were a better language, array could be a >> library container. If Ada were a worse language containers must have been >> implemented at the language level. > > I agree. In Eiffel, "array" doesn't have any special built-in > syntax/semantics. It's just something declared in the predefined > library. In general, putting functionality in the predefined > library greatly simplifies a language. > Thanks for the observation; it's been a _long_ time since I last looked at Eiffel. I think perhaps another visit might be in order. > But I think what Simon wants is convenient syntax for dealing with > associative arrays, and that's reasonable. But in a better language, > that wouldn't require associative arrays to be built in. > Yes, that's what I am really after. > By the way, I don't much like the term "associative array". To me, > "array" implies random access (i.e. roughly constant-time component > access). I'd prefer "map" or "mapping", where "array" is a kind of > mapping, and "hashed map" is another kind. > I see your point (and Dmitry's argument above is interesting as well.) Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world