Boo

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

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: