[#92063] [Ruby trunk Misc#15723] Reconsider numbered parameters — zverok.offline@...
Issue #15723 has been updated by zverok (Victor Shepelev).
3 messages
2019/03/31
[ruby-core:91768] [Ruby trunk Misc#15654] Documentation for Complex is wrong or misleading
From:
hanmac@...
Date:
2019-03-11 09:19:25 UTC
List:
ruby-core #91768
Issue #15654 has been updated by Hanmac (Hans Mackowiak). @nobu: i don't know if that would be better, but can the parser be changed to support that stuff like "2+1i" would create the Complex object directly? ---------------------------------------- Misc #15654: Documentation for Complex is wrong or misleading https://bugs.ruby-lang.org/issues/15654#change-77044 * Author: sawa (Tsuyoshi Sawada) * Status: Open * Priority: Normal * Assignee: ---------------------------------------- The documentation for `Complex` https://ruby-doc.org/core-2.6/Complex.html says or implies that a complex can be created by literal like `2+1i`, but that is actually calling the method `+` on receiver `2` with argument `1i`. The description should be changed to make it clear that `2+ 1i` is not a literal but is applying a method. -- 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>