https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112008-11-09T05:49:54ZRuby Issue Tracking SystemRuby master - Feature #729: curly brackets" and "begin end" blocks should behave syntactically and semantically exactly the samehttps://redmine.ruby-lang.org/issues/729?journal_id=15652008-11-09T05:49:54Zantares (Michael Klishin)
<ul></ul><p>=begin</p>
<blockquote>
<p>In every other language I know that has curly braces as block delimiters, the above is alowed and <em>natural</em>. Except Ruby.</p>
</blockquote>
<p>Python does not use curly braces for if statements, and AFAIK nether Python community, nor Ruby community really cares about curly braces for if statements. If you ask me, I'd say curly braces are ugly, so calling it natural is a matter of taste. I don't think that Ruby which historically never tried to be C-like language, really needs to become closer to C.<br>
=end</p> Ruby master - Feature #729: curly brackets" and "begin end" blocks should behave syntactically and semantically exactly the samehttps://redmine.ruby-lang.org/issues/729?journal_id=15672008-11-09T20:43:06Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p>You shouldn't mention principle of least surprise of YOURSELF in the<br>
proposal, for background varies for everyone. You have no rights to<br>
change the language (especially in incompatible way) to adopt your<br>
personal preference before accustoming yourself to the language,<br>
unless you're the creator of the language. Even Ruby surprised you,<br>
it is so for good reasons.</p>
<p>If you use Ruby for a while (e.g. at least a year of so), and you<br>
still feel it should be changed for good reasons, come again.</p>
<pre><code> matz.
</code></pre> Ruby master - Feature #729: curly brackets" and "begin end" blocks should behave syntactically and semantically exactly the samehttps://redmine.ruby-lang.org/issues/729?journal_id=15792008-11-11T01:09:37Zcout (Paul Brannan)curlypaul924@gmail.com
<ul></ul><p>On Sun, Nov 09, 2008 at 05:08:29AM +0900, Tomas Pospisek wrote:</p>
<blockquote>
<p>To me "curly brackets" and "begin end" should act semantically and<br>
syntactically exactly the same.</p>
</blockquote>
<p>Except for precedence, the curly brackets are the same as <code>do</code>..<code>end</code>, not<br>
<code>begin</code>..<code>end</code>.</p>
<p>I think the real question is why <code>do</code> and <code>begin</code> are different. This<br>
confused me when I first started using ruby, but now I am used to it.</p>
<p>Paul</p> Ruby master - Feature #729: curly brackets" and "begin end" blocks should behave syntactically and semantically exactly the samehttps://redmine.ruby-lang.org/issues/729?journal_id=849362020-04-06T02:57:17Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/84936/diff?detail_id=56786">diff</a>)</li></ul>