Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8154512

Optional parameters

XMLWordPrintable

    • x86
    • linux

      A DESCRIPTION OF THE REQUEST :
      Be able to instantiate default parameter values so that they may be left out on the method call. See: c++, c#

      JUSTIFICATION :
      It's a modern characteristic for languages. It saves code redundancy for method overloads, which makes projects more maintainable.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Assign a value to a parameter in the formals of a method definition. If the parameter is left out, the default value is assigned, and the parameter is still added to th symbol table. Non-assigned parameters act bormally
      ACTUAL -
      Covered above

      ---------- BEGIN SOURCE ----------
      See other modern languages
      ---------- END SOURCE ----------

            abuckley Alex Buckley
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: