You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Juntunen (Jira)" <ji...@apache.org> on 2021/07/18 06:12:00 UTC

[jira] [Commented] (NUMBERS-162) Use "of" as method name

    [ https://issues.apache.org/jira/browse/NUMBERS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17382746#comment-17382746 ] 

Matt Juntunen commented on NUMBERS-162:
---------------------------------------

Is this still valid?

> 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
>            Priority: Trivial
>             Fix For: 1.1
>
>
> 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)