Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Issues
  • #217
Closed
Open
Issue created Jan 26, 2014 by Administrator@rootContributor

`#` can't be used on the rhs of `letstx`

Created by: natefaubion

macro test {
  case { _ } => {
    letstx $foo = #{ 1 + 2 + 3 };
    return #{
      $foo;
    }
  }
}
test

This is because # breaks hygiene, referring to name_stx and match, and letstx defers to helper macros, so it gets the wrong name_stx and match when calling transcibe. Also illustrated by http://bit.ly/1fmrUwf

To clarify, this is a problem with # (well, really all fundamental macros that break hygiene), I just titled the issue the way I did because it's how you'd likely happen upon it.

Assignee
Assign to
Time tracking