[#106355] [Ruby master Bug#18373] RBS build failure: '/include/x86_64-linux/ruby/config.h', needed by 'constants.o'. — "vo.x (Vit Ondruch)" <noreply@...>
Issue #18373 has been reported by vo.x (Vit Ondruch).
28 messages
2021/12/01
[ruby-core:106703] [Ruby master Feature#18410] Proposal to make inspect include underscores on numerics
From:
duerst <noreply@...>
Date:
2021-12-16 03:54:30 UTC
List:
ruby-core #106703
Issue #18410 has been updated by duerst (Martin D端rst). mame (Yusuke Endoh) wrote in #note-2: > Thousands separators may vary depending on locales. See the discussion of #16011. Yes indeed. The advantage of using 964_218_442 is that a) I don't think there's actually a locale that uses this convention (but I may be wrong), and b) this is the form that Ruby uses in source. ---------------------------------------- Feature #18410: Proposal to make inspect include underscores on numerics https://bugs.ruby-lang.org/issues/18410#change-95389 * Author: brightbits (Michael Baldry) * Status: Open * Priority: Normal ---------------------------------------- The documentation for inspect reads "Returns a string containing a human-readable representation of obj." but for large numerical values, while 964218442 is human-readable, 964_218_442 is a lot more readable. The language allows the use of underscores to make numbers more readable, so why should inspect not also honour this? Happy to provide a patch if this would be an acceptable change. -- 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>