Re: 回复: Re: [refactoring] Why is 'else ' demanded?
Willem Bogaerts <[email protected]> Mon, 17 Jun 2013 10:18:27 +0200
| Newsgroups | gmane.comp.programming.refactoring |
|---|---|
| Message-ID | <[email protected]> |
I am more of an InterCal guy, I like "Please return 7" over "return 7".
Also, if you see a design error, you can just prefix it with "Please
don't" and have a clear comment about that code toward your fellow
programmers.
Have fun,
Willem.
On 15/06/2013 21:34, Richard wrote:
> If it is considered that a programming language is 'better' for having
> removed all strictly unnecessary code constructs, then languages like
> 'Brainfuck' would be the pinnacle of all programming languages, having
> only 8 instructions and absolutely no redundant constructs.
> <http://en.wikipedia.org/wiki/Brainfuck>
>
> BF doesn't even have an 'if' construct at all, only a 'while'
> construct. 'if' statements must be formulated in terms of a while
> loop that either executes once or not at all.
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/refactoring/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/refactoring/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/