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

分割代入を出来るようにしたい #511

Open
FineArchs opened this issue Dec 19, 2023 · 0 comments
Open

分割代入を出来るようにしたい #511

FineArchs opened this issue Dec 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@FineArchs
Copy link
Member

JavaScriptのような分割代入を出来るようにしたいです。

var a = ""
var b = ""
// 配列の分割代入
[a, b] = ['foo', 'bar']
<: a // foo
<: b // bar
// オブジェクトの分割代入
{ str1: a, str2: b } = { str1: 'hoge', str2: 'fuga' }
<: a // hoge
<: b // fuga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants