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.1 required=3.0 tests=BAYES_50,FREEMAIL_FROM, NICE_REPLY_A,SCC_BODY_URI_ONLY,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: richardthiebaud Newsgroups: comp.lang.ada Subject: Re: Java and Python have just discovered "record" type finally after 40 years. Date: Fri, 12 May 2023 14:58:52 -0400 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 12 May 2023 18:58:52 -0000 (UTC) Injection-Info: dont-email.me; posting-host="ed4885d5bf8df90d6e8a1dbdb90f5dff"; logging-data="1888565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kYT8RZg9M6iS7YUgT1FIovzqWas4/8l4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cancel-Lock: sha1:D8RSaYvw+WBdkuoJw1D+0aN/IPM= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65216 List-Id: On 5/12/23 13:50, Nasser M. Abbasi wrote: > > Java 14 now have "Record" ! > > " records are meant to be data carriers" > > https://www.digitalocean.com/community/tutorials/java-records-class > > And Python 3.7 now has records, they call it "data class" > > https://realpython.com/python-data-classes/ > > "One new and exciting feature coming in Python 3.7 is the data class. > A data class is a class typically containing mainly data" > > What took them so long? Pascal and Ada had records > from day one, only 40 years ago or so. > > --Nasser > And Cobol had them 63 years ago.