Uploaded image for project: 'Swift'
  1. Swift
  2. SR-6063

KeyedDecodingContainer unnecessarily verbose

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Standard Library
    • Labels:
      None

      Description

      The KeyedDecodingContainer.decode() take a type as their argument. This seems redundant, as the return type could easily be used to infer what type is being decoded.

      Are there any plans to include versions of decode() that do not need the type to be explicitly specified? It is trivial to write an extension that does this, but it feels like this should be provided by the standard library.

        Attachments

          Activity

            People

            Assignee:
            itaiferber Itai Ferber
            Reporter:
            WAHa.06x36 Dag Ă…gren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: