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.5 required=3.0 tests=BAYES_40,REPLYTO_WITHOUT_TO_CC, 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: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Java and Python have just discovered "record" type finally after 40 years. Date: Fri, 12 May 2023 12:50:14 -0500 Organization: A noiseless patient Spider Message-ID: Reply-To: nma@12000.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 12 May 2023 17:50:16 -0000 (UTC) Injection-Info: dont-email.me; posting-host="1b2acba1ebf21cd768ac28dd1da9a06b"; logging-data="1871538"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EiI0xSpJw8P0xZlRzmZlv" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cancel-Lock: sha1:pogWir/Ax1rzv7RqImfgWU2PUfg= Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65214 List-Id: 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