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

変数 var, let, const #15

Closed
4 of 6 tasks
azu opened this issue May 8, 2016 · 10 comments
Closed
4 of 6 tasks

変数 var, let, const #15

azu opened this issue May 8, 2016 · 10 comments

Comments

@azu
Copy link
Collaborator

azu commented May 8, 2016

基本文法 #14

変数とプロパティは一緒に説明すべきかは微妙そう。
オブジェクトの説明のあとになりそう。

この書籍のユースケースでは prefer-const ではいいと思ってるけど、REPLで確かめて見て! みたいなケースだとletの方が繰り返し定義できて便利である。

ここではなぜ複数あるのかとその意味の違いについてだけ簡潔にやる

@azu
Copy link
Collaborator Author

azu commented May 8, 2016

  • let and const は何の略か?

constconstant.

  • 由来(書かない気もするけど調べる)

@azu azu mentioned this issue May 8, 2016
19 tasks
@azu
Copy link
Collaborator Author

azu commented May 16, 2016

由来とかってやっぱり見つからないなー。ES3とかそれ以前までいかないと見つからなさそう

@azu
Copy link
Collaborator Author

azu commented May 16, 2016

@azu
Copy link
Collaborator Author

azu commented May 24, 2016

var の話の中でhoistingについて説明するのは時期尚早感がある。
そうした場合に、関数 #20 でその話をするのかという感じになる。
でも、 varlet の違いを説明をするにはその違いを知らないと意味ないしやりにくい感じ

@azu
Copy link
Collaborator Author

azu commented May 24, 2016

https://leanpub.com/understandinges6/read#leanpub-auto-var-declarations-and-hoisting
Understanding ECMAScript 6 はいきなり これの話なのか

This was referenced May 24, 2016
@azu
Copy link
Collaborator Author

azu commented May 26, 2016

"データ"と"値"をどこまで区別して書くのかが曖昧。。
#28 (comment)

これはどっかでかき分けをしっかりしたい

@azu azu mentioned this issue May 26, 2016
3 tasks
azu added a commit that referenced this issue May 27, 2016
var、let、const というキーワードを使っての変数宣言と代入について。

    var、let、const
    変数名に利用できる文字種
    prefer const

Refs:  #15
@azu
Copy link
Collaborator Author

azu commented Jun 11, 2016

@azu
Copy link
Collaborator Author

azu commented Jun 26, 2016

http://wirfs-brock.com/allen/talks/viewsource-es2015.pdf

letの良いところの話

@azu
Copy link
Collaborator Author

azu commented Jul 14, 2016

@azu
Copy link
Collaborator Author

azu commented Sep 28, 2017

これは閉じてもいいのかな

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant