Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: C/C++ question about dynamic "static struct" Date: Sun, 21 Oct 2012 09:20:20 +1300 Lines: 25 Message-ID: References: <507F380B.2060402@verizon.net> <8q66l9-lkm.ln1@wilbur.25thandClement.com> <5081D9DA.6020103@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net u7xdwD8H007fgJhDl8hF1wZ7epyRuSIgg6WjCOLuPk+P59iGGc6MsjoxtBpFKo79aJ Cancel-Lock: sha1:0yrBPbCTkubRVj1vp44U53OU3zg= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:12.0) Gecko/20120423 Thunderbird/12.0 In-Reply-To: Xref: csiph.com comp.lang.c++:19137 comp.lang.c:27424 On 10/21/12 02:45, Nick Keighley wrote: >> On 10/19/12 James Kuyper wrote: >> >>> In other words, a simple language helps writing simple programs (that >>> are nevertheless very expressive.) >> >>> However, in the case of C the "simplicity" is not actually a factor >>> that helps writing simple programs. On the contrary, the "simplicity" >>> of the language is actually a limiting factor. Rather than help, it >>> impedes the writing of simple programs, > > I simply disagree > >>> requiring many of even the >>> simplest tasks to have complex and error-prone implementations. > > for instance? Almost anything that involves a dynamically sized set of data. One operation I often have to perform is reading often very large lists of string, number pairs into an associative array indexed by the string or a set sorted by the number. Almost one liners in C++. -- Ian Collins