Uploaded image for project: 'Commons Text'
  1. Commons Text
  2. TEXT-112

Conditional expansion (variation of default value syntax)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      I'd like to propose an extension to the current syntax (and would consider submitting a PR for it if folks are in favor of the proposal)

      There is currently support for: ${undefined.number:-1234567890}

      I'm proposing adding: ${defined.number:?The number is ${defined.number}}

      My quick glance of the recursive interpolation makes me feel this would be relatively straightforward.

       

      Curious when the next version would be released (I asked because I could actually make use of this in something I'm working on right now)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            cfineman Charles Fineman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: