From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.127.135 with SMTP id r129mr12778465itc.48.1520369101495; Tue, 06 Mar 2018 12:45:01 -0800 (PST) X-Received: by 10.157.68.105 with SMTP id f38mr1050674otj.1.1520369101329; Tue, 06 Mar 2018 12:45:01 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!border2.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no45659ita.0!news-out.google.com!a25ni122itj.0!nntp.google.com!w142no45656ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 6 Mar 2018 12:45:01 -0800 (PST) In-Reply-To: <7744da76-0ea5-459e-a55d-8b16d7b3ccdb@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1206:45c6:8b20:b82c:9d79:c50d:f4f8; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:45c6:8b20:b82c:9d79:c50d:f4f8 References: <7744da76-0ea5-459e-a55d-8b16d7b3ccdb@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <65e6d0f9-7457-4584-9160-b5ca9db24599@googlegroups.com> Subject: Re: Recursive algebraic data types From: gautier_niouzes@hotmail.com Injection-Date: Tue, 06 Mar 2018 20:45:01 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2051 X-Received-Body-CRC: 323439370 Xref: reader02.eternal-september.org comp.lang.ada:50859 Date: 2018-03-06T12:45:01-08:00 List-Id: > for definition: please have a look at https://en.wikipedia.org/wiki/Recur= sive_data_type "In computer programming languages, a recursive data type (also known as a = recursively-defined, inductively-defined or inductive data type) is a data = type for values that may contain other values of the same type." The definition given above is nonsensical: either the data type is empty or= infinitely large... In the examples given (List), the type names can mean either a pointer to t= he real data, or the data itself (a list's node in that case). Clearly they= are playing with words there: a node doesn't really contain the next node,= but a pointer (or a reference) to the next node. So it's not really recurs= ive, only in appearance. They play with a shortcut notation.