From: "Dan'l Miller" <optikos@verizon.net>
Subject: Re: anonymous records as tuples
Date: Mon, 12 Mar 2018 19:51:05 -0700 (PDT)
Date: 2018-03-12T19:51:05-07:00 [thread overview]
Message-ID: <40461a81-a074-4b15-8cdb-d977337a84b7@googlegroups.com> (raw)
In-Reply-To: <p87494$ctd$1@franka.jacob-sparre.dk>
Randy Brukardt wrote:
> And there are so many Ada
> constructs which assume a name is handy (type conversion, generic
> instantiation, and so on) that anonymous types tend to always have an
> incomplete set of capabilities.
Just to play devil's advocate (for a school of thought that I don't myself subscribe to regarding the current fad of tuples & lambdas), in addition to Ada's current category of •identifier•-based naming, there does exist another kind of naming: ••reflection-based drill-down••. Instead of full-fledged anonymity, the de facto name of a pseudo-anonymous type in some future version of Ada could be something to the effect of: subroutine X's return type, such as with ' syntax as reflection (e.g., 'ReturnType). (I am not sure that this extends well to anonymous functions or anonymous procedures as lambda-expressions in Ada, because I don't see an easy way to ‘find’ a lambda-expression that lacks a name via reflection.) It would seem that at least some of Ada's language-defined ' attributes drill down to entities that have no identifier name, e.g., 'Tag and 'Class, so there is some stunted degree of embrace of using reflection drill-down as a de facto name for entities that lack identifier-names.
next prev parent reply other threads:[~2018-03-13 2:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-12 17:32 anonymous records as tuples Stephen Leake
2018-03-12 18:01 ` Dmitry A. Kazakov
2018-03-12 19:17 ` Robert Eachus
2018-03-12 19:34 ` Stephen Leake
2018-03-12 23:59 ` Randy Brukardt
2018-03-13 2:51 ` Dan'l Miller [this message]
2018-03-13 8:28 ` Dmitry A. Kazakov
2018-03-12 21:09 ` Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox