Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7033

Consider adding a StringScan Data Type that can Reuse Patterns

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: PUP 4.8.1
    • Fix Version/s: None
    • Component/s: Language, Type System
    • Labels:
      None
    • Template:
    • Sub-team:
    • Team:
      Froyo
    • QA Risk Assessment:
      Needs Assessment

      Description

      I'm honestly not sure how you would go about this, but currently you must repeat your Data Type aliases constantly to cover all cases.

      Example:

      Base IPv6 Address: https://github.com/simp/pupmod-simp-simplib/blob/master/types/ip/v6/base.pp

      Bracketed IPv6 Address: https://github.com/simp/pupmod-simp-simplib/blob/master/types/ip/v6/bracketed.pp

      It would be really nice if the Bracketed case could be something like the following instead:

      type Simplib::IP::V6::Bracketed = Composite[String['['], Simplib::IP::V6::Base, String[']']]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              peiriannydd Trevor Vaughan
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support