Project

General

Profile

Actions

Feature #10366

open

New inspection form for rational

Added by sawa (Tsuyoshi Sawada) about 10 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:65606]

Description

Currently, rational inspection is expressed with parentheses:

(2/51)

If this were taken as a Ruby expression, it would mean integer division, whose value is 0 in this case. It does not make much sense to express that it is indeed not integer division and that it is rational by using parentheses. Now that we have rational literal using r, we can make the inspection form as:

2/51r

This would be much less confusing.

No data to display

Actions

Also available in: Atom PDF

Like0