You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2021/06/09 13:36:00 UTC
[jira] [Created] (NUMBERS-162) Use "of" as method name
Gilles Sadowski created NUMBERS-162:
---------------------------------------
Summary: Use "of" as method name
Key: NUMBERS-162
URL: https://issues.apache.org/jira/browse/NUMBERS-162
Project: Commons Numbers
Issue Type: Wish
Reporter: Gilles Sadowski
Fix For: 1.0
Whenever it improves readability, prefer {{of}} as a method name.
Examples:
{code:java}
final double r = LinearCombination.of(a, b, c, d);
final double s = Summation.of(a, c);
{code}
instead of
{code:java}
final double r = LinearCombination.value(a, b, c, d);
final double s = Summation.value(a, c);
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)