Opened 7 years ago

Closed 5 years ago

#88 closed defect (fixed)

SRFI 87: => in CASE

Reported by: cowan Owned by: alexshinn
Priority: major Milestone:
Component: WG1 - Core Keywords:
Cc:

Description

Should we allow => in case clauses (including the else clause)? This allows you to pass the item actually matched to a procedure, analogous to the use of => in cond clauses, which passes the non-#f value to a procedure.

Example (from SRFI 87):

(case (get-symbol)
  ((true) #t)
  ((false) #f)
  (else => (lambda (x) x)))

This maps true to #t, false to #f, and leaves everything else alone.

Change History (6)

comment:1 Changed 7 years ago by cowan

  • Resolution set to fixed
  • Status changed from new to closed

WG1 voted to accept this.

comment:2 Changed 7 years ago by alexshinn

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:3 Changed 7 years ago by alexshinn

  • Owner alexshinn deleted
  • Status changed from reopened to assigned

comment:4 Changed 7 years ago by alexshinn

  • Status changed from assigned to decided

comment:5 Changed 6 years ago by alexshinn

  • Owner set to alexshinn
  • Status changed from decided to writing

comment:6 Changed 5 years ago by cowan

  • Resolution set to fixed
  • Status changed from writing to closed
Note: See TracTickets for help on using tickets.