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=-3.2 required=3.0 tests=BAYES_00,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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Java and Python have just discovered "record" type finally after 40 years. Date: Sun, 14 May 2023 08:46:15 +0200 Organization: Adalog Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 14 May 2023 06:46:15 -0000 (UTC) Injection-Info: dont-email.me; posting-host="2ff732ee4d10ce81f4e1bd59da22715f"; logging-data="2698561"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pWdU2Y/PGGOdV6MFBxUk3" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:DJSIgH5V/PUm8+QDzJT68jfnh88= Content-Language: en-US, fr In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:65223 List-Id: Le 13/05/2023 à 18:53, Niklas Holsti a écrit : >> What about COBOL and LISP? > > > As I understand it (but I don't claim to be expert), the early COBOL > languages could describe the structure of file records, and of > working-storage objects, as nested sequences of components and > sub-records, but each such description defined a _single_ "record" > object, not a "record" data-type that could have many instances. So if > you wanted to have two record objects with the same structure, you had > to duplicate the whole record description. AFAIR, COBOL didn't have types, but you could define a variable LIKE another one. > However, Wikipedia says that the COBOL record structure inspired records > for Pascal. > > Early LISP languages did not have record types, AFAIK. But you could of > course use lists to program record-like data structures. Of course, in LISP there is only one structure, for data and programs alike: the list! -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX https://www.adalog.fr https://www.adacontrol.fr