[#75225] [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7) — k@...
Issue #12324 has been reported by Kazuki Yamaguchi.
6 messages
2016/04/27
[#78693] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
k@rhe.jp wrote:
[#78701] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Kazuki Yamaguchi <k@...>
2016/12/17
On Sat, Dec 17, 2016 at 01:31:12AM +0000, Eric Wong wrote:
[#78702] Re: [Ruby trunk Feature#12324] Support OpenSSL 1.1.0 (and drop support for 0.9.6/0.9.7)
— Eric Wong <normalperson@...>
2016/12/17
Kazuki Yamaguchi <k@rhe.jp> wrote:
[ruby-core:75177] [Ruby trunk Feature#5899] chaining comparsions.
From:
mail@...
Date:
2016-04-25 16:54:53 UTC
List:
ruby-core #75177
Issue #5899 has been updated by Stefan Schテシテ殕er.
Yukihiro Matsumoto wrote:
> I don't think changing "1 < b < 4" to "1 < b && b < 4" is that hard task.
Writing `1 < b && b < 4` is not hard. But doesn't `1 < b < 4` look intriguing? It's so clean!
I would also expect a slight difference, namely that `1 < b < 4` evaluates `b` once and `1 < b && b < 4` evaluates `b` twice.
----------------------------------------
Feature #5899: chaining comparsions.
https://bugs.ruby-lang.org/issues/5899#change-58310
* Author: Ondrej Bilka
* Status: Feedback
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
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
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>