Boo
  1. Boo
  2. BOO-610

Optional return on inline closures.

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.5
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Current:

      func =

      {i as int | return i*5}

      Possible alternative:

      func =

      {i as int | i*5}

        Issue Links

          Activity

          Hide
          Doug H added a comment -

          and implicit it parameter

          {it*2}

          ==

          {it | return it*2}
          Show
          Doug H added a comment - and implicit it parameter {it*2} == {it | return it*2}
          Hide
          Rodrigo B. de Oliveira added a comment -

          Please, add implicit parameters as another issue so we can discuss it better.

          Show
          Rodrigo B. de Oliveira added a comment - Please, add implicit parameters as another issue so we can discuss it better.
          Hide
          Doug H added a comment -

          There already is an issue for it, 466

          Show
          Doug H added a comment - There already is an issue for it, 466
          Hide
          Cameron Kenneth Knight added a comment -

          Why is this marked as Fixed? I checked the SVN and it doesn't work.

          Shouldn't this be then marked as Won't Fix or Postponed?

          Show
          Cameron Kenneth Knight added a comment - Why is this marked as Fixed? I checked the SVN and it doesn't work. Shouldn't this be then marked as Won't Fix or Postponed?
          Hide
          Cameron Kenneth Knight added a comment -

          Ok, I was confused.

          {x|x}

          doesn't work, though

          {x|return x}

          and

          {x|x + 1}

          do.

          Show
          Cameron Kenneth Knight added a comment - Ok, I was confused. {x|x} doesn't work, though {x|return x} and {x|x + 1} do.

            People

            • Assignee:
              Rodrigo B. de Oliveira
              Reporter:
              Cameron Kenneth Knight
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: