please review draft JEP: Convenience Factory Methods for Collections (original) (raw)

Wang Weijun weijun.wang at oracle.com
Fri Jul 18 09:09:21 UTC 2014


A .with(k, v) to create a new immutable map with an extra pair.

--Max

On Jul 18, 2014, at 16:11, Michael Kay <mike at saxonica.com> wrote:

Well, Remi had proposed raising the limit. Suppose we offered 7 key-value pairs instead of 5. Would you then complain about having to rewrite your code if you had to add an 8th entry to the map? Yes, I would. In fact, the higher you make the limit, the bigger the surprise when I find I cannot extend my code in the natural way by adding one more entry. Michael Kay Saxonica



More information about the core-libs-dev mailing list