Skip to content

racket/match rejects some quoted literals #3972

@LiberalArtist

Description

@LiberalArtist

What version of Racket are you using?
8.2 CS

What program did you run?

#lang racket

(match-lambda
  ['#s(some-prefab a-symbol)
   #t])

What should have happened?
The program should compile and run successfully.

If you got an error message, please include it here.

match: non-literal in quote pattern in: #s(some-prefab a-symbol)

Please include any other relevant details
In contrast, this version (with quasiquote) works as expected:

#lang racket

(match-lambda
  [`#s(some-prefab a-symbol)
   #t])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions