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

Add Boolean subtypes True and False

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:

      Description

      It is of value to be able to describe a type constraint on boolean true or false instead of all Booleans. Without this, certain variations cannot be described with the type system - e.g. "Give me a number or true" and additional logic is required.

      The implementation could add a parameter to the boolean, but since there are only two possibilities, this is better modeled as subclasses.

      (Given 2 points because of possible unit test work volume)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              henrik.lindberg Henrik Lindberg
              QA Contact:
              Kurt Wall
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support