Re: [Numbers] Make "Complex" a "final" class?

2018-02-02 Thread Gilles
On Fri, 2 Feb 2018 13:20:21 +, Stephen Colebourne wrote: Some of the classes you are talking about are what I call VALJOs. Follow these guidelines and your class will be well placed for the future. http://blog.joda.org/2014/03/valjos-value-java-objects.html Thanks. In that post, you

Re: [Numbers] Make "Complex" a "final" class? (Was: [...] API of "Complex")

2018-02-02 Thread Stephen Colebourne
Some of the classes you are talking about are what I call VALJOs. Follow these guidelines and your class will be well placed for the future. http://blog.joda.org/2014/03/valjos-value-java-objects.html Stephen On 2 February 2018 at 12:45, Gilles wrote: > On Thu, 1

[Numbers] Make "Complex" a "final" class? (Was: [...] API of "Complex")

2018-02-02 Thread Gilles
On Thu, 1 Feb 2018 08:30:00 -0700, Gary Gregory wrote: Hi All: I like the "of" prefix but I think it might be odd to force the convention for ALL factories. It might be an English language thing for me. For example, (picking a made up example) this reads really well to me: Pair.of(foo,