Deutsch English Français Italiano |
<pan$35724$57c5c6ff$2dac0e95$c52fa8a4@invalid.invalid> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!bluemanedhawk.eternal-september.org!.POSTED!not-for-mail From: Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> Newsgroups: comp.lang.c Subject: Re: C23 auto x C++ auto. Date: Mon, 27 May 2024 05:53:39 -0000 (UTC) Organization: A noiseless patient Spider Lines: 17 Message-ID: <pan$35724$57c5c6ff$2dac0e95$c52fa8a4@invalid.invalid> References: <v2vela$3e4pn$1@dont-email.me> <v2vgj3$3eh79$1@raubtier-asyl.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 27 May 2024 07:53:39 +0200 (CEST) Injection-Info: bluemanedhawk.eternal-september.org; posting-host="0ff601eebaa845a071c47aabef292035"; logging-data="4104434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bt/TIW97nQ0f7Uv5I7+aq5nbPMtTi+/8=" User-Agent: Pan/0.154 (Izium; 517acf4) Cancel-Lock: sha1:ECcF4jsjXqXFMLiND6CN2HmBgKg= X-Face: Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronuku pokaiwhenuakitanatahu Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACh0lEQVRYw71Z21bD MAzzevbfkr4cHjrSXJyL044+MDa6WLEl2SkvkrZ1AbAvXO+bUGSCPYnsuIVGMpm ZLnjX718GhAKNsp8lON2F9VrhELwIgJlBepkZjA78rVK+FkmNhEJK76UsJlz8+E rJsjrpYouhLo/SC6qPHgakFOR8wV9+8rCfO/I/oVnmUZUp42/LW2XkLj9TCFNM9 jp5g2EmHZgpYZjCOkYU7sXVogRylJqpdggoFLG1g09Flah/7kErCxzR9HgXPYsq 0glb9cxjIz2Vsk9AmAoCSxECpD713joMKjQqLAtmMqJmXjdVvlMnMQCVITotJd1 z+fh1f1NNo+vuc1KnhWUmY7t03vydTud9BbXCtN3L2PL3bK7JCNG0GHzuZxafyB fxevCxpm1vrwZltqw6SILCcdoCE6PGQC8wZWDA9Or7Qp5s3lAZezys0nDazs9S9 R0TjwEiksRxLkNPC1NMMWPs1bj0Ei0Yuo+JVtFLuzP1NRJ16qXWN8DhhtmS4PDg O6mqRxs4bEJrYt087mSIow/1VzW2oFlMQuiuIy/KsUagvhdw6hSjJGlIavbLF8x j3X47bccLcUSi0dkWh1nUZNhANT1tHKUXrNxNLbd9KPb9wDDVrKwmPQMOPQ1oy6 k5I1DwzDeRJd3jVIhDAUxq3ngzJG4CCkNXZxZVMcjefoK2J0gUY2S3rxz/RuTFx 2zHd9U+obimJXMG4edsk/2j5pTU5G1MmzbRLxkfq5EiT1GGsidvMGzi+1goGb2l GCrN+nGnV8xj3q3JLRDVPL96vUc7Z4aJ3TN1mVqWAMJMfG+Jxh6TQqP+92iZkCU xtglds1AB6r0aiSHKcnFck+p/c/0CbacFLQcajGcAAAAASUVORK5CYII= Bytes: 2776 Bonita Montero wrote: > I don't know what type inference in C is good for since the type names > in C are usually short. If I have short typenames in C++ I don't use > type inference. Type-inference makes sense to make such things shorter > typename map<string, string>::const_iterator it = map.cbegin(); > This doesn't happen in C. Type-inference in C is useful for the same sole reason that type-inference has any use anywhere else: preventing repetition of a typename. -- Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr. blue-maned_hawk.srht.site Current weather: On fire