특정 시점까지 특정 객체에 대한 연산을 미루는 래퍼 객체
// Without Waitor
document.addEventListener('DOMContentLoaded', () => {
console.log(document.getElementById('a').value);
});
가벼운 Observable 과 Iterable을 구현할 수 있게 하는 자바스크립트의 콜백을 위한 표준
기본적인 callbag 팩토리와 오퍼레이터들을 제공하는 라이브러리입니다.
callbag-basics 은 callbag 이라는 명세를 따르는 함수들을 구현한 라이브러리에요.
Callbag 은 말이죠..:
numPrefix ::= 0x | 0b | 0o | nothing
floatNumber ::= numbers . numbers
fullNumber ::= numPrefix numbers | floatNumber
char ::= utf 8 char
chars ::= char chars | nothing
fullString ::= " chars "
alphabet ::= A-z
alphabets ::= alphabet alphabets | nothing
number ::= 0-9
numbers ::= number numbers | nothing
specialChar ::= _ | ?
specialChars ::= specialChar specialChars | nothing
identifierHead ::= specialChar | alphabet
identifierBody ::= alphabets | numbers | specialChars
identifierBodys ::= identifierBody identifierBodys | nothing
package main | |
import "fmt" | |
type any interface {} | |
type Stack []any | |
func (stack *Stack) Push(elements ...any) Stack { | |
for _, element:= range elements { |
EBNF of identifier
EBNF of literal
연속된 2개 이상의 space는 한개의 space로 치환됩니다.
모든 줄은 trim 됩니다.(줄의 첫 번째 문자가 space가 아니고, 가장 마지막 문자가 space가 아닐 때 까지 모든 space를 제거함을 의미.)
space ::= 'utf8 space character'
spaces ::= space spaces
expressions ::= expression spaces expressions
expression ::= container | literal | nothing
이 번역본의 저작권은 TC39에게 있습니다.
고유명사의 경우, 대응하는 마땅한 단어가 없는 경우에는 영어 표기를 사용했습니다. 하이퍼링크의 경우 제거하였습니다. 또한 오역, 의역이 조금 있습니다. 이 부분은 양해 바랍니다.
Promise는 미뤄진 계산의 결과를 나타내기위한 placeholder 로서 쓰이는 객체입니다.
모든 Promise 객체는 아래의 세 가지 상태 중 하나의 상태를 가지고 있습니다. : 이행됨(fufilled), 거절됨(rejected), 대기중(pending)