Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fresh label and numeric switch default syntax changes #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

enricozb
Copy link
Contributor

  1. &{..} now means &0{..} in both the sup and dup positions.
  2. &*{..} now means &<FRESH>{..} in both the sup and dup positions.
  3. In numeric switch statements, the default case now injects the original number. For example
@f(x) = ~x {
  0: 123
  1: 456
  y: y
}

@main = @f(10)

will result in 10, not 8.

@VictorTaelin VictorTaelin force-pushed the main branch 3 times, most recently from 3e248a2 to b1c0550 Compare January 10, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants