<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[&amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot;]]></title><description><![CDATA[<p>Hi!</p>
<p>In vielen Skriptsprachen liest man ja haeufig kurze Statements wie</p>
<pre><code>$file = open(&quot;bla.txt&quot;) or die
</code></pre>
<p>was dann in etwa heisst, dass wenn der erste Ausdruck false liefert, das Programm terminiert wird. Ist sowas in C++ auch erlaubt? Machbar ist es, bsp</p>
<pre><code class="language-cpp">int i;
cin &gt;&gt; i or return 0;
</code></pre>
<p>Ich frage mich allerdings, ob der Compiler das eventuell wegoptimieren darf, da der temporaer erzeugte bool ja nicht benutzt wird, oder ob es andere Gruende gibt, die gegen so etwas sprechen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206473/quot-xxx-or-return-quot-vs-quot-if-xxx-return-quot</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 00:41:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206473.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Feb 2008 15:39:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Mon, 25 Feb 2008 15:39:48 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>In vielen Skriptsprachen liest man ja haeufig kurze Statements wie</p>
<pre><code>$file = open(&quot;bla.txt&quot;) or die
</code></pre>
<p>was dann in etwa heisst, dass wenn der erste Ausdruck false liefert, das Programm terminiert wird. Ist sowas in C++ auch erlaubt? Machbar ist es, bsp</p>
<pre><code class="language-cpp">int i;
cin &gt;&gt; i or return 0;
</code></pre>
<p>Ich frage mich allerdings, ob der Compiler das eventuell wegoptimieren darf, da der temporaer erzeugte bool ja nicht benutzt wird, oder ob es andere Gruende gibt, die gegen so etwas sprechen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462582</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462582</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 25 Feb 2008 15:39:48 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Mon, 25 Feb 2008 16:56:46 GMT]]></title><description><![CDATA[<p>pumuckl schrieb:</p>
<blockquote>
<p>Machbar ist es, bsp</p>
<pre><code class="language-cpp">int i;
cin &gt;&gt; i or return 0;
</code></pre>
</blockquote>
<p>welchen compiler nutzt du denn bitte, dass DAS funktioniert? o.O</p>
<p>in c oder c++ ist wohl</p>
<pre><code class="language-cpp">int i;
!(cin &gt;&gt; i) ? return -1 : /* foo */;
</code></pre>
<p>angebrachter...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462648</guid><dc:creator><![CDATA[hey]]></dc:creator><pubDate>Mon, 25 Feb 2008 16:56:46 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Mon, 25 Feb 2008 16:59:47 GMT]]></title><description><![CDATA[<p>Ist return neuerdings ein Ausdruck? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> Falls ja, warum sollte er das wegoptimieren dürfen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462649</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Mon, 25 Feb 2008 16:59:47 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Mon, 25 Feb 2008 17:00:08 GMT]]></title><description><![CDATA[<p>nur ein test..</p>
<pre><code class="language-cpp">or  and   xor not
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1462650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462650</guid><dc:creator><![CDATA[qqqq]]></dc:creator><pubDate>Mon, 25 Feb 2008 17:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Mon, 25 Feb 2008 17:17:02 GMT]]></title><description><![CDATA[<p>okay, mit or return war ein griff ins Klo, allerdings funktioniert folgendes bei mir:</p>
<pre><code class="language-cpp">int main() {
  int i;
  std::cin &gt;&gt; i or std::cout &lt;&lt; &quot;pfui!&quot; &lt;&lt; std::endl;
  std::cout&lt;&lt; &quot;ende&quot; &lt;&lt; std::endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1462665</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462665</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 25 Feb 2008 17:17:02 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Mon, 25 Feb 2008 17:29:33 GMT]]></title><description><![CDATA[<p>Ja, warum soll das nicht gehen. Üblicher ist es aber trotz aller Hübschheit von or, den || Operator zu verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1462675</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1462675</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Mon, 25 Feb 2008 17:29:33 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Tue, 26 Feb 2008 12:40:49 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>Ja, warum soll das nicht gehen. Üblicher ist es aber trotz aller Hübschheit von or, den || Operator zu verwenden.</p>
</blockquote>
<p>„Üblicher“ – bä. In allen anderen Sprachen, wo beide Alternativen erlaubt sind, setzen sich „and“ und „or“ immer mehr durch, nur in C++ ist das anders. Woran liegt das? Sind C++-Programmierer so verbohrt? Ich persönlich vermute ja, dass es eher daran liegt, dass der Compiler des sympathischen Weltmarktführers<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/2122.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--trade_mark"
      title=":trade_mark:"
      alt="™"
    /> das nicht unterstützt.</p>
<p>Aber sei's drum: „Üblicher“ ist hier kein gutes Argument, tut mir leid. Ich verwende durchweg „and“ und „or“, weil's besser lesbar ist. Klar, das ist subjektiv aber allemal ein besseres Argument.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463168</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Tue, 26 Feb 2008 12:40:49 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Tue, 26 Feb 2008 12:44:57 GMT]]></title><description><![CDATA[<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>Ich persönlich vermute ja, dass es eher daran liegt, dass der Compiler des sympathischen Weltmarktführers<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/2122.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--trade_mark"
      title=":trade_mark:"
      alt="™"
    /> das nicht unterstützt.</p>
</blockquote>
<p>Es gibt aktuelle Compiler die das nicht unterstuetzen? Ich mein, ich versteh es ja, wenn ein Compiler bei zwar standardkonformen, aber extrem komplizierten Templategeschichten das Handtuch schmeissen, aber die Unterstuetzung von or, and &amp; co zu implementieren, die wenn ich nicht irre schon seit Jahren im Standard sind, sollte doch nicht so schwer sein oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463171</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463171</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Tue, 26 Feb 2008 12:44:57 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Tue, 26 Feb 2008 12:53:59 GMT]]></title><description><![CDATA[<p>pumuckl schrieb:</p>
<blockquote>
<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>Ich persönlich vermute ja, dass es eher daran liegt, dass der Compiler des sympathischen Weltmarktführers<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/2122.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--trade_mark"
      title=":trade_mark:"
      alt="™"
    /> das nicht unterstützt.</p>
</blockquote>
<p>Es gibt aktuelle Compiler die das nicht unterstuetzen?</p>
</blockquote>
<p>MSVC.</p>
<p>Auf meinen <a href="https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=312168" rel="nofollow">Fehlerbericht</a> kam von MS der folgende Kommentar:</p>
<p>Jonathan Caves schrieb:</p>
<blockquote>
<p>#include of &lt;iso646.h&gt; (or ciso646) is how we support these keywords: and currently have no plans to change this. To be honest you are the first person to ever request something like this.</p>
</blockquote>
<p>IMHO Unbefriedigend.</p>
<blockquote>
<p>aber die Unterstuetzung von or, and &amp; co zu implementieren, die wenn ich nicht irre schon seit Jahren im Standard sind, sollte doch nicht so schwer sein oder?</p>
</blockquote>
<p>Es müsste reichen, die Lexeme der Symboltabelle hinzuzufügen und intern gleichwertig mit den konventionellen Symbolen zu behandeln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463175</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Tue, 26 Feb 2008 12:53:59 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Tue, 26 Feb 2008 12:55:17 GMT]]></title><description><![CDATA[<p>Es wird unterstützt, nur muss man dafür eine extra Header-Datei einbinden und die Wörter sind nicht Schlüsselwort-farben, was sich aber (umständlich) durch einen Eintrag in einer Zusatz-Schlüsselwörter-Datei machen lässt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463177</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463177</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Tue, 26 Feb 2008 12:55:17 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Tue, 26 Feb 2008 13:12:20 GMT]]></title><description><![CDATA[<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>IMHO Unbefriedigend.</p>
</blockquote>
<p>Was ist dem noch hinzuzufuegen? Nichts. Gut dass es noch andere Compiler gibt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463189</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463189</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Tue, 26 Feb 2008 13:12:20 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Tue, 26 Feb 2008 14:03:20 GMT]]></title><description><![CDATA[<p>Bei den Borland-Compilern ist es auch nicht anders. Hier muss man iso646.h mit einbinden. Also Makros.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1463250</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1463250</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 26 Feb 2008 14:03:20 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 15:18:08 GMT]]></title><description><![CDATA[<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>Aber sei's drum: „Üblicher“ ist hier kein gutes Argument, tut mir leid. Ich verwende durchweg „and“ und „or“, weil's besser lesbar ist. Klar, das ist subjektiv aber allemal ein besseres Argument.</p>
</blockquote>
<p>Sehe ich anders. Was &quot;Üblicher&quot; und &quot;besser lesbar&quot; ist, hängt davon ab, wer den Code liest/bearbeitet. Wenn ich an einem Projekt mit 10 C++ Programmierern arbeite und 8 davon schreiben || statt or, dann ist || sowohl &quot;üblicher&quot;, als auch &quot;besser lesbar&quot; und demzufolge die richtige Wahl. Schreibt die Mehrheit hingegen lieber or, dann ist or die bessere Wahl. Wer nur für sich selbst schreibt, kann natürlich einzig und allein seinen eigenen Geschmack als Maßstab verwenden, aber derjenige ist sowieso in eine glücklichen Situation <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p>Ist für mich exakt das Selbe wie mit den verschiedenen Bracing-Styles.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464099</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Wed, 27 Feb 2008 15:18:08 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 15:21:39 GMT]]></title><description><![CDATA[<p>HumeSikkins schrieb:</p>
<blockquote>
<p>Sehe ich anders. Was &quot;Üblicher&quot; und &quot;besser lesbar&quot; ist, hängt davon ab, wer den Code liest/bearbeitet. Wenn ich an einem Projekt mit 10 C++ Programmierern arbeite …</p>
</blockquote>
<p>Ja, das ist etwas anderes. Coderichtlinien in einem Projekt sollten natürlich schon konsistent durchgesetzt werden. Wobei man sich darüber streiten kann, ob sie dermaßen detailliert sein müssen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464102</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464102</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Wed, 27 Feb 2008 15:21:39 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 16:07:52 GMT]]></title><description><![CDATA[<p>Naja, eigentlich sollten z.B. die Bracing-styles und im Grunde auch solche Sachen doch alle gleich lesbar sein, schliesslich liest man sich doch auch durch diverse Literatur und schreibt nicht gleich ne Meckermail an den Autor oder Verlag &quot;das entspricht nicht dem Coding-Style den ich gewohnt bin, bitte aendert das&quot; - Hauptsache man bleibt in einer Sourcefile konsistent...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464160</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464160</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 27 Feb 2008 16:07:52 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 18:58:30 GMT]]></title><description><![CDATA[<p>pumuckl schrieb:</p>
<blockquote>
<p>okay, mit or return war ein griff ins Klo, allerdings funktioniert folgendes bei mir:</p>
<pre><code class="language-cpp">int main() {
  int i;
  std::cin &gt;&gt; i or std::cout &lt;&lt; &quot;pfui!&quot; &lt;&lt; std::endl;
  std::cout&lt;&lt; &quot;ende&quot; &lt;&lt; std::endl;
}
</code></pre>
</blockquote>
<p>Es müsste auch das gehen:</p>
<pre><code class="language-cpp">#if defined(_MSC_VER) &amp;&amp; !defined(or)
#include &lt;iso646.h&gt;
#endif

inline bool die(char const* message = &quot;WTF???&quot;)
{
    printf(&quot;\n\nfatal error: %s\n&quot;, message);
    terminate();
    return false;
}

int main()
{
    int i;
    (std::cin &gt;&gt; i) or die(&quot;invalid input&quot;);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1464291</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464291</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Wed, 27 Feb 2008 18:58:30 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 19:29:44 GMT]]></title><description><![CDATA[<p>pumuckl schrieb:</p>
<blockquote>
<p>Naja, eigentlich sollten z.B. die Bracing-styles und im Grunde auch solche Sachen doch alle gleich lesbar sein[...]Hauptsache man bleibt in einer Sourcefile konsistent...</p>
</blockquote>
<p>Du meinst also, wenn man ein Sourcefile anfasst, das jemand anders geschrieben hat, soll man erstmal dessen Stil analysieren und den dann auch umsetzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464310</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 27 Feb 2008 19:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 19:38:09 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>pumuckl schrieb:</p>
<blockquote>
<p>Naja, eigentlich sollten z.B. die Bracing-styles und im Grunde auch solche Sachen doch alle gleich lesbar sein[...]Hauptsache man bleibt in einer Sourcefile konsistent...</p>
</blockquote>
<p>Du meinst also, wenn man ein Sourcefile anfasst, das jemand anders geschrieben hat, soll man erstmal dessen Stil analysieren und den dann auch umsetzen?</p>
</blockquote>
<p>Ja. Das ist schließlich in OS-Projekten gang und gäbe, individuelle Style Guidelines für das Projekt zu publizieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464318</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Wed, 27 Feb 2008 19:38:09 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 19:51:02 GMT]]></title><description><![CDATA[<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>Bashar schrieb:</p>
<blockquote>
<p>pumuckl schrieb:</p>
<blockquote>
<p>Naja, eigentlich sollten z.B. die Bracing-styles und im Grunde auch solche Sachen doch alle gleich lesbar sein[...]Hauptsache man bleibt in einer Sourcefile konsistent...</p>
</blockquote>
<p>Du meinst also, wenn man ein Sourcefile anfasst, das jemand anders geschrieben hat, soll man erstmal dessen Stil analysieren und den dann auch umsetzen?</p>
</blockquote>
<p>Ja. Das ist schließlich in OS-Projekten gang und gäbe, individuelle Style Guidelines für das Projekt zu publizieren.</p>
</blockquote>
<p>Lesen. Denken. Posten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464331</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464331</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 27 Feb 2008 19:51:02 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 19:54:15 GMT]]></title><description><![CDATA[<p>Da braucht man doch kaum was zu analysieren, 95% sieht man doch eh auf den 1. Blick.</p>
<p>Ich muss mich jedesmal ziemlich zurückhalten wenn jmd. neu zu einem Team/Projekt kommt, und einfach in &quot;seinem Stil&quot; anfängt Code zu schreiben, ohne Rücksicht auf bestehenden Code. (zurückhalten deswegen weil's ja nicht jeder mit Humor nimmt wenn man ihm 10 Minuten lang in gehobener Lautstärke erklärt dass er ein dummer Vollkoffer ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> )</p>
<p>Alternative, wenn man alleine ein altes Projekt übernimmt oder das ganze Team findet das der alte Stil furchtbar ist: das gesamte Projekt umformatieren. Dazu gibt es ganz gute Tools, mit denen man auch mehrere zigtausend Zeilen in ein paar Minuten umformatiert hat.</p>
<p>p.S.: was jedermann für sich alleine zuhause oder sonstwo macht wo es mich nicht betrifft ist mir natürlich egal, soll jeder machen wie er glaubt. Gröber ärgern tut es mich bloss wenn es in der Arbeit passiert, bei Sourcen an denen ich dann u.U. auch noch arbeiten muss, bzw. auch nur wenn ich die mal lesen/kontrollieren/... muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464333</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464333</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Wed, 27 Feb 2008 19:54:15 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 19:58:57 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>Lesen. Denken. Posten.</p>
</blockquote>
<p>Erklären.</p>
<p>Oder, anders gesagt: „input underflow.“</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464342</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464342</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Wed, 27 Feb 2008 19:58:57 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 20:08:10 GMT]]></title><description><![CDATA[<p>Du: &quot;Man sollte projektweit einheitliche Standards haben.&quot;<br />
pumuckl: &quot;Wozu, es reicht, wenn es innerhalb einer Quelldatei einheitlich ist.&quot;<br />
Ich: &quot;Man sollte also bei jedem File erstmal den individuellen Stil analysieren und nachbilden?&quot;<br />
Du: &quot;Ja, deshalb hat man projekteinheitliche Style Guidelines&quot;. (<em>Hä?</em>)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464349</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 27 Feb 2008 20:08:10 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 20:20:26 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>Du: &quot;Man sollte projektweit einheitliche Standards haben.&quot;<br />
pumuckl: &quot;Wozu, es reicht, wenn es innerhalb einer Quelldatei einheitlich ist.&quot;<br />
Ich: &quot;Man sollte also bei jedem File erstmal den individuellen Stil analysieren und nachbilden?&quot;<br />
Du: &quot;Ja, deshalb hat man projekteinheitliche Style Guidelines&quot;. (<em>Hä?</em>)</p>
</blockquote>
<p>Pumuckl bezog sich doch aber eher auf Hume als auf mich und widersprach mir damit nicht sondern stellte einen ähnlichen Standpunkt dar.</p>
<p>So zumindest habe ich das verstanden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464361</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Wed, 27 Feb 2008 20:20:26 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Wed, 27 Feb 2008 20:29:10 GMT]]></title><description><![CDATA[<p>Mal abgesehen davon, wer hier auf wen geantwortet hat: Du hast pumuckl so verstanden, dass man projektweit einheitliche Standards haben sollte? Ich lese da eindeutig raus, dass das nicht so wichtig ist, und dass es nur in einem Sourcefile einheitlich sein sollte, was ja, wenn ich dich nicht vollkommen falsch verstanden habe, deinem Standpunkt genau entgegengesetzt ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464368</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464368</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 27 Feb 2008 20:29:10 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Thu, 28 Feb 2008 06:59:53 GMT]]></title><description><![CDATA[<p>Wunschfeature für zukünftige IDEs: eine Übersetzeroption, wo man einstellen kann wie Bracings, Idents &amp; Co. in der Sourcefile aussehen sollen und wie sie mir dargestellt werden sollen. Sollte ja nicht so schwer sein ein paar Whitespaces umzusetzen bzw. einzufügen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464512</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 28 Feb 2008 06:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;xxx or return;&amp;quot; vs. &amp;quot;if (!xxx) return;&amp;quot; on Thu, 28 Feb 2008 15:22:44 GMT]]></title><description><![CDATA[<p>Gib es sowohl im VS als auch bei Code::Blocks</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1464814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1464814</guid><dc:creator><![CDATA[michme]]></dc:creator><pubDate>Thu, 28 Feb 2008 15:22:44 GMT</pubDate></item></channel></rss>