[#87847] undefined symbol: mjit_init_p — Leam Hall <leamhall@...>

I pulled Ruby trunk on 3 Jul and am now getting errors similar to the

10 messages 2018/07/07

[#88088] [Ruby trunk Misc#14937] [PATCH] thread_pthread: lazy-spawn timer-thread only on contention — normalperson@...

Issue #14937 has been reported by normalperson (Eric Wong).

9 messages 2018/07/24

[ruby-core:88018] [Ruby trunk Feature#14924] // floor division operator

From: se8.and@...
Date: 2018-07-20 13:13:01 UTC
List: ruby-core #88018
Issue #14924 has been reported by deneb (S辿bastien Durand).

----------------------------------------
Feature #14924: // floor division operator
https://bugs.ruby-lang.org/issues/14924

* Author: deneb (S辿bastien Durand)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
Hello!

In my job, I have to do many math operations. And it's kind of a pain because of integer division (3 / 2 == 1). I have to constantly cast integers to floats.

Would it be a good idea to always return a float when you divide two numbers? I mean, 99% of the time you just want that. (The principle of least surprise.)

Python is doing that just right: 

~~~ python
3 / 2 == 1.5
3 // 2 == 1
~~~

http://python-reference.readthedocs.io/en/latest/docs/operators/floor_division.html

I don't know if it's too much of a breaking change though? Maybe for Ruby3x3?

Thanks.



-- 
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>

In This Thread

Prev Next