https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112019-03-28T07:35:54ZRuby Issue Tracking SystemRuby master - Bug #15733: Inconsistent __FILE__ and Kernel#__dir__https://redmine.ruby-lang.org/issues/15733?journal_id=773552019-03-28T07:35:54Zshevegen (Robert A. Heiler)shevegen@gmail.com
<ul></ul><p>I have no personal preference here either way but I can also understand Satoshi's<br>
explanation / confusion.</p>
<p>This may be good to suggest for an upcoming developer meeting. <strong>DIR</strong> might have<br>
an advantage of being faster than a method and is probably closest to Satoshi's<br>
described case. Kerne#<strong>file</strong> might be second best; Kernel#<strong>DIR</strong> would be a bit<br>
strange, though. People might then wonder why an upcased method name would be<br>
added and why there are not more upcased methods in ruby ... or why there are<br>
then both upcased and lowercased methods in ruby that include __ as part of their<br>
name :) so I think the other two suggestions would be better than the <strong>DIR</strong><br>
suggestion (if any of them could be approved that is).</p> Ruby master - Bug #15733: Inconsistent __FILE__ and Kernel#__dir__https://redmine.ruby-lang.org/issues/15733?journal_id=785102019-06-13T05:57:01Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Rejected</i></li></ul><p><code>__FILE__</code> and <code>__LINE__</code> are inherited from C preprocessor. Others aren't. I am not going to pursue consistency here.</p>
<p>Matz.</p>