Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-812

Strings should evaluate in asBool() like in Java

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0-JSR-1
    • 1.0-JSR-2
    • None
    • None

    Description

      > > - should an empty (non-null) String evaluate to
      > > false? This would be analogous to seeing a String
      > > as a Collection of chars, but might break some
      > > existing code.
      >
      > "true" should be true, and all the rest should be false (like in Java)

      Ah, correct.
      And I guess that's case insensitive.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            phkim Kim, Pilho
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment