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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: How to get Ada to ?cross the chasm?? Date: Tue, 01 May 2018 17:46:39 -0700 Organization: A noiseless patient Spider Message-ID: <87efiuope8.fsf@nightsong.com> References: <1c73f159-eae4-4ae7-a348-03964b007197@googlegroups.com> <87k1su7nag.fsf@nightsong.com> <87po2la2qt.fsf@nightsong.com> <87in8buttb.fsf@jacob-sparre.dk> <87wowqpowu.fsf@nightsong.com> <16406268-83df-4564-8855-9bd0fe9caac0@googlegroups.com> <87o9i2pkcr.fsf@nightsong.com> <87in88m43h.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="c542ccd1be7cc45dffb8a8de81e34fd0"; logging-data="21593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+o5VZhR6BQDoZCn1k3eIa4" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:FxO+CGN0reWRJoYGHxEVyTS528s= sha1:zvl/YnmZ8HSQAUe4aukJc0kyjdU= Xref: reader02.eternal-september.org comp.lang.ada:51905 Date: 2018-05-01T17:46:39-07:00 List-Id: gautier_niouzes@hotmail.com writes: > What do you miss with unconstrained types? They don't need gc.... > String is just another unconstrained array type. It gets messier when the data contains possibly-circular references to other data. If you want to program without GC for spiritual or moral reasons, then sure, you can do it with enough effort. If you have to program without GC for practical reasons (it definitely imposes runtime costs and you might be on a small system), then unlucky you, you've got some work to do. But if you can afford the overhead and just want to get your program working, then GC makes life much simpler.