[#44036] [ruby-trunk - Feature #6242][Open] Ruby should support lists — "shugo (Shugo Maeda)" <redmine@...>

20 messages 2012/04/01

[#44084] [ruby-trunk - Bug #6246][Open] 1.9.3-p125 intermittent segfault — "jshow (Jodi Showers)" <jodi@...>

22 messages 2012/04/02

[#44156] [ruby-trunk - Feature #6265][Open] Remove 'useless' 'concatenation' syntax — "rosenfeld (Rodrigo Rosenfeld Rosas)" <rr.rosas@...>

45 messages 2012/04/06

[#44163] [ruby-trunk - Bug #6266][Open] encoding related exception with recent integrated psych — "jonforums (Jon Forums)" <redmine@...>

10 messages 2012/04/06

[#44303] [ruby-trunk - Feature #6284][Open] Add composition for procs — "pabloh (Pablo Herrero)" <pablodherrero@...>

57 messages 2012/04/12

[#44349] [ruby-trunk - Feature #6293][Open] new queue / blocking queues — "tenderlovemaking (Aaron Patterson)" <aaron@...>

10 messages 2012/04/13

[#44402] [ruby-trunk - Feature #6308][Open] Eliminate delegation from WeakRef — "headius (Charles Nutter)" <headius@...>

20 messages 2012/04/17

[#44403] [ruby-trunk - Feature #6309][Open] Add a reference queue for weak references — "headius (Charles Nutter)" <headius@...>

15 messages 2012/04/17

[#44533] [ruby-trunk - Bug #6341][Open] SIGSEGV: Thread.new { fork { GC.start } }.join — "rudolf (r stu3)" <redmine@...>

24 messages 2012/04/22

[#44630] [ruby-trunk - Feature #6361][Open] Bitwise string operations — "MartinBosslet (Martin Bosslet)" <Martin.Bosslet@...>

31 messages 2012/04/26

[#44648] [ruby-trunk - Feature #6367][Open] #same? for Enumerable — "prijutme4ty (Ilya Vorontsov)" <prijutme4ty@...>

16 messages 2012/04/26

[#44704] [ruby-trunk - Feature #6373][Open] public #self — "trans (Thomas Sawyer)" <transfire@...>

61 messages 2012/04/27

[#44748] [ruby-trunk - Feature #6376][Open] Feature lookup and checking if feature is loaded — "trans (Thomas Sawyer)" <transfire@...>

13 messages 2012/04/28

[ruby-core:44145] Re: [ruby-trunk - Feature #5899][Feedback] chaining comparsions.

From: Ondřej Bílka <neleai@...>
Date: 2012-04-05 10:11:43 UTC
List: ruby-core #44145
On Sun, Apr 01, 2012 at 02:30:31AM +0900, matz (Yukihiro Matsumoto) wrote:
> 
> Issue #5899 has been updated by matz (Yukihiro Matsumoto).
> 
> Status changed from Assigned to Feedback
> 
> I don't think changing "1 < b < 4" to "1 < b && b < 4" is that hard task.
> I am not sure it's worth allowing confusing "false < 4".
As false goes I would like to define sentinels by inheriting from FalseClass which is separate feature.
> 
> Matz.
> 
> ----------------------------------------
> Feature #5899: chaining comparsions.
> https://bugs.ruby-lang.org/issues/5899#change-25543
> 
> Author: neleai (Ondrej Bilka)
> Status: Feedback
> Priority: Normal
> Assignee: matz (Yukihiro Matsumoto)
> Category: Joke
> Target version: 
> 
> 
> Migration from python to ruby is problematic because ruby lacks certain features.
> Most important python advantage is chained comparison
> We must wrap every comparison like described below.
> 
> puts "yes" if 1<2<3<4
> 
> class Fixnum
>   def <(a)
>     ((self<=>a)==-1)&&a
>   end
> end
> class FalseClass
>   def <(a)
>     false
>   end
> end
> 
> 
> 
> 
> -- 
> http://bugs.ruby-lang.org/

-- 

Sysadmins busy fighting SPAM.

In This Thread