[#6660] Ruby on Neko ? — Nicolas Cannasse <ncannasse@...>

Hi folks,

14 messages 2005/11/19

[#6672] testing for hardlink with "test(?-, ...)" flawed on Windows — noreply@...

Bugs item #2858, was opened at 2005-11-20 16:35

13 messages 2005/11/20

[#6684] semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...>

Hi all,

81 messages 2005/11/21
[#6685] Re: semenatics of if/unless/while statement modifiers — Mauricio Fern疣dez <mfp@...> 2005/11/22

On Tue, Nov 22, 2005 at 08:22:59AM +0900, Stefan Kaes wrote:

[#6686] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

Mauricio Fern疣dez wrote:

[#6687] Re: semenatics of if/unless/while statement modifiers — Eric Hodel <drbrain@...7.net> 2005/11/22

On Nov 21, 2005, at 4:37 PM, Stefan Kaes wrote:

[#6689] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

Eric Hodel wrote:

[#6693] Re: semenatics of if/unless/while statement modifiers — Yukihiro Matsumoto <matz@...> 2005/11/22

Hi,

[#6695] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

Yukihiro Matsumoto wrote:

[#6718] Re: semenatics of if/unless/while statement modifiers — mathew <meta@...> 2005/11/22

[#6722] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

mathew wrote:

[#6707] Re: semenatics of if/unless/while statement modifiers — "David A. Black" <dblack@...> 2005/11/22

Hi --

[#6708] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

David A. Black wrote:

[#6714] Re: semenatics of if/unless/while statement modifiers — "David A. Black" <dblack@...> 2005/11/22

Hi --

[#6717] Re: semenatics of if/unless/while statement modifiers — Stefan Kaes <skaes@...> 2005/11/22

David A. Black wrote:

[#6798] ruby 1.8.4 preview2 — Yukihiro Matsumoto <matz@...>

Hi,

37 messages 2005/11/30

Re: semenatics of if/unless/while statement modifiers

From: Mathieu Bouchard <matju@...>
Date: 2005-11-22 17:52:29 UTC
List: ruby-core #6733
On Wed, 23 Nov 2005, Stefan Kaes wrote:

> >  x=options[:x] and f(x)
> We had that one covered already. In
> http://ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-core/6715

What can I say. Sorry for not replying quickly enough.

> > And you can also do it this way:
> >  x=options[:x]; f(x) if x
> How's that better than  f(x) if x = options[:x] ?

It's better in your case because Ruby does what you want to do and it's 
called a "if" and not a "and". I gave it to you because it's about as 
short as the code you wish would work in Ruby and because you don't seem 
to like using "and" as a conditional despite "and" meant to be a 
conditional.

> Too much noise caused by superflous keywords. For me.

An old RCR of mine proposed making "end" implicit just before a closing
parens. It was rejected in little time. In the light of this, if it's
really critical for you to get rid of superfluous keywords, switch to
Scheme or CommonLisp or even Tcl.

____________________________________________________________________
Mathieu Bouchard - t駘:+1.514.383.3801 - http://artengine.ca/matju
Freelance Digital Arts Engineer, Montr饌l QC Canada


In This Thread