--20cf300e50bbcd905204b03d5d94 Content-Type: text/plain; charset=UTF-8 On Wed, Oct 26, 2011 at 8:30 PM, Yukihiro Matsumoto <matz / ruby-lang.org>wrote: > Hi, > > In message "Re: [ruby-core:40418] Re: [ruby-trunk - Feature > #5474][Assigned] keyword argument" > on Thu, 27 Oct 2011 04:03:52 +0900, Joshua Ballanco < > jballanc / gmail.com> writes: > > |I think the point is that not every argument necessarily has a reasonable > |default. Imagine, for example, if we were to rewrite File.open to take > |keyword arguments: > | > | class File > | def self.open(filename:, mode: 'r') > | ... > > Yes, there could be a language with that kind of design. But Ruby > will not have mandatory keyword arguments. It is the design choice I > made already. Every keyword argument will be optional in Ruby. > Thank you for the clarification. I am slowly understanding the direction and motivation behind the keyword arguments feature. --20cf300e50bbcd905204b03d5d94 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div class="gmail_quote">On Wed, Oct 26, 2011 at 8:30 PM, Yukihiro Matsumoto <span dir="ltr"><matz / ruby-lang.org></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi,<br> <br> In message "Re: [ruby-core:40418] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"<br> <div class="im"> on Thu, 27 Oct 2011 04:03:52 +0900, Joshua Ballanco <jballanc / gmail.com> writes:<br> <br> |I think the point is that not every argument necessarily has a reasonable<br> |default. Imagine, for example, if we were to rewrite File.open to take<br> |keyword arguments:<br> |<br> | class File<br> | def self.open(filename:, mode: 'r')<br> | ...<br> <br> </div>Yes, there could be a language with that kind of design. But Ruby<br> will not have mandatory keyword arguments. It is the design choice I<br> made already. Every keyword argument will be optional in Ruby.<br></blockquote><div><br></div><div>Thank you for the clarification. I am slowly understanding the direction and motivation behind the keyword arguments feature.</div> </div> --20cf300e50bbcd905204b03d5d94--