From: "Guy N. Hurst" Date: 2001-06-16T09:04:09+09:00 Subject: [ruby-talk:16514] Re: Playing with Ruby Syntax (was: Initial thoughts about Ruby From a Smalltalk Programmer) Dave Thomas wrote: > ... > However, adding keyword arguments to the call will allow the > parser to be cleverer. Say the syntax is > > method arg1: arg2: > > then we could have automatic conversion of blocks to procs when they > appear after an argument name. This would let us write Smalltalk-ish > things such as > > my_if a = b then: { puts "one"} else: { puts "two" } > My thoughts: 1) why not also have block->proc conversion without keywords args? 2) wait, how does ruby know that the block after "then:" isn't a hash? Guy N. Hurst -- HurstLinks Web Development http://www.hurstlinks.com/ Norfolk, VA 23510 (757)623-9688 FAX 623-0433 PHP/MySQL - Ruby/Perl - HTML/Javascript