Skip to content

Scheme/Racket: closures misses the λ spelling, panics_and_aborts misses raise #8927

Done

Description

@squid-protocol

What is wrong

Scheme/Racket: closures does not count the λ spelling of lambda, and panics_and_aborts does not count raise. Found with a Scheme oracle on the Racket repository (678 of 2,572 .rkt files are scanned as scheme; 3,120 functions matched; args 0.98 / 1.00; branch 0.95 / 0.93, so the oracle reads definitions correctly).

Reproduce (pinned scanner; counts read from function_data)

#lang racket
(define (lam x) (map (λ (y) y) x))     ; struct_closures == 0, should be 1 (an anonymous function)
(define (rs x) (raise 'bad))           ; state_bailout_hits == 0, should be 1 (the contract: "a throw or raise ... in statement or call form")

Regex and time families are dead for Scheme/Racket (no rule matches regexp-match or current-seconds), a definition gap the maintainers may want to schedule separately.

Expected

Add λ to the closures rule and raise/raise-user-error/error to the bailout rule for Scheme/Racket.

Part of #8863. Time the change; rosetta:rebless-owed if counts move; add each case as a test.

Activity

  1. added
    bug
    core-engine
    priority: low
    on Nov 21, 2026
  2. squid-protocol commented on Nov 23, 2026

    @squid-protocol
    OwnerAuthor

    This issue's PR content landed via #9111 (merged as fcc440b). It was a 'Part of' change, so the issue stays open for the remaining work.

  3. squid-protocol commented on Nov 24, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-24T12:53Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  4. squid-protocol commented on Nov 24, 2026

    @squid-protocol
    OwnerAuthor

    Fix is already on main in #9111 (scheme.py closures + panics_and_aborts; tests/extraction/languages/test_scheme_lambda_raise_8927.py passes, 21 tests). Closing as done. Sibling gaps (regexp-match, current-seconds rules) are not needed by any burned estate; not filed.

  5. squid-protocol commented on Nov 24, 2026

    @squid-protocol
    OwnerAuthor

    Churn run 8927-20261124T1313Z (host melek) ended without a PR. fix already on main via #9111; issue closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclaim:melekcore-enginepriority: low

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions