Add append method for list builder

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.7.0, 3.7.0-beta1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, there's no way to append key-value pairs to a list builder object after construction. We should provide an append method for this case.

      Defining an operator+= method will allow users to stick to the JSON-like syntax on the expression's right-hand side. For example:

      list::builder doc = {"hello", "world"};
      doc += {"foo", "bar"};
      

      instead of

      list::builder doc = {"hello", "world"};
      doc.append({"foo", "bar"});
      

            Assignee:
            Clyde Bazile III (Inactive)
            Reporter:
            Clyde Bazile III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: