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

Add Boolean subtypes True and False

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Won't Do
    • None
    • None
    • Compiler

    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

            Unassigned Unassigned
            henrik.lindberg Henrik Lindberg
            Kurt Wall Kurt Wall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support