style
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| style [2017/07/05 12:33] – gg | style [2017/07/05 12:38] (current) – gg | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| ist gleich schlechte Lesbarkeit | ist gleich schlechte Lesbarkeit | ||
| <code php> | <code php> | ||
| - | function f($n) | + | function f($n) |
| - | | + | |
| { | { | ||
| - | $x = 1; // Keine Einrückung, | + | $x = 1; // Keine Einrückung, |
| - | $I = $n; | + | $I = $n; |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | $x *= $I--; // Einrückung wieder wie ausserhalb des while-Blockes | + | $x *= $I--; // Einrückung wieder wie ausserhalb des while-Blockes |
| - | } // zufällig passt die Schliessung des while-Blockes mit der Einrückung der Öffnung zusammen | + | // Die geschwungen Klammern werden eingespart |
| - | | + | // was bei einer Instruktion pro Block OK ist und wenn die Einrückungen stimmen |
| + | | ||
| } | } | ||
| </ | </ | ||
style.1499250813.txt.gz · Last modified: 2017/07/05 12:33 by gg
