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

breaking change: Introduce keyword let #418

Merged
merged 7 commits into from
Nov 7, 2022
Merged

breaking change: Introduce keyword let #418

merged 7 commits into from
Nov 7, 2022

Conversation

yhara
Copy link
Collaborator

@yhara yhara commented Nov 6, 2022

This PR introduces new keyword let and makes variable decralations require let (like Rust, etc.)

Motivation

  • I'm planning to introduce if let later (because I found unwapping Maybe is so painful without it). There should be normal let for consistency.
  • This makes Shiika code more readable because a = 1 is now always a reassignment.

@yhara yhara merged commit ba8ae9b into main Nov 7, 2022
@yhara yhara deleted the kw-let branch November 7, 2022 12:52
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.

1 participant