Let
JavaScript에서 let 의 기원
- Stackoverflow - ecmascript 6 - Why was the name 'let' chosen for block-scoped variable declarations in JavaScript? - Stack Overflow
- ECMA Script 2015에서 var와함께 쓸수 있게된 'let' 선언은 무엇의 약자일까? > 자유게시판 > 웹동네
Let is a mathematical statement that was adopted by early programming languages like Scheme and Basic. Variables are considered low level entities not suitable for higher levels of abstraction, thus the desire of many language designers to introduce similar but more powerful concepts like in Clojure, F#, Scala, where let might mean a value, or a variable that can be assigned, but not changed, which in turn lets the compiler catch more programming errors and optimize code better.
JavaScript has had var from the beginning, so they just needed another keyword, and just borrowed from dozens of other languages that use let already as a traditional keyword as close to var as possible, although in JavaScript let creates block scope local variable instead.
번역:
Let은 Scheme 및 Basic과 같은 초기 프로그래밍 언어에서 채택된 수학적 진술입니다. 변수는 높은 수준의 추상화에 적합하지 않은 낮은 수준의 엔터티로 간주되므로 많은 언어 디자이너가 Clojure, F#, Scala와 같이 비슷하지만 더 강력한 개념을 도입하고자 합니다. 여기서 let은 값 또는 할당할 수 있는 변수를 의미할 수 있습니다. , 그러나 변경되지 않으므로 컴파일러가 더 많은 프로그래밍 오류를 포착하고 코드를 더 잘 최적화할 수 있습니다.
JavaScript는 처음부터 var를 사용했기 때문에 다른 키워드가 필요했으며, JavaScript에서는 let이 대신 블록 범위 지역 변수를 생성하지만 가능한 한 var에 가까운 전통적인 키워드로 이미 let을 사용하는 수십 개의 다른 언어에서 차용했습니다.
결론:
- 약자(Abbreviation)가 아니다.
- 영어에서 쓰는 동사 'let' 이다.