From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.8 required=3.0 tests=BAYES_05,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Java and Python have just discovered "record" type finally after 40 years. Date: Sat, 13 May 2023 10:13:22 +0300 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net QVNfL7jUfwwj7GeSpY8LGwjP78+OOLHNl/PNblZ4o94WR2t1z8 Cancel-Lock: sha1:s8t8ycT6HGUGAnDCdmYS3p50LVs= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65219 List-Id: On 2023-05-13 0:33, Jeffrey R.Carter wrote: > On 2023-05-12 19:50, Nasser M. Abbasi wrote: >> >> Java 14 now have "Record" ! >> >> And Python 3.7 now has records, they call it "data class" >> >> What took them so long? Pascal and Ada had records >> from day one, only 40 years ago or so. Java and Python have classes, which have records as a special case, if the term "record" is understood as in most other languages, including Ada. But it seems that the Java 14 "record" is not quite the same as an Ada record, because Java 14 records are meant to be immutable data carriers, not mutable data structures. Still, Java 14 records are described as a (very) special case of classes. > Pascal had them in 1970. Algol, I think, had them in 1960. Algol 60 did not have records, only arrays. Algol W, a precursor to Pascal, had them in 1966. Simula had them in 1967. (Wikipedia says "In 1966 C. A. R. Hoare introduced the concept of record class construct".) Algol 68 had them in 1968. Pascal had them in 1970, as you say.