·ͱΊ
• null ͱ unde
fi
ned ༷͝ͱʹ֓ͶҰ؏ͨ͠ΘΕํΛ͍ͯ͠Δ
• ECMAScript ͷݴޠ༷Ͱද͖΄΅ unde
fi
ned ͕ΘΕΔ
• Web ؔ࿈༷Ͱ׳ྫతʹ null ͕ΘΕΔ͜ͱ͕ଟ͍
• ҙຯతʹ͍͚ΒΕ͍ͯΔ͜ͱ΄΅ͳͦ͞͏
Slide 35
Slide 35 text
͍͚ͷώϯτ
• جຊ unde
fi
ned Λ͏ͷ͕͓͢͢Ί
• ݴޠΈࠐΈͷػೳͱฒͯҧײ͕ग़ʹ͍͘
• Web ͷ API , null Λ͏ϥΠϒϥϦʹڧؔ͘࿈͢Δ෦ͳΒ
null Λͬͯ౷ҰײΛग़͢ͷΞϦ
• ͳΜʹͤΑҰ؏͍ͨ͠ํ͕͞Ε͍ͯΔͷ͕Θ͔Γ͍ͩ͢Ζ͏
Slide 36
Slide 36 text
ࢀߟจݙ
• ECMAScript® 2024 language speci
fi
cation
• https://ecma-international.org/publications-and-standards/standards/
ecma-262/
• WHATWG Standards
• https://spec.whatwg.org
Slide 37
Slide 37 text
ͳΜͰ͜ͷΛ?
• ECMAScript ͷݴޠ༷ʹର͢Δ proposal Ͱ null ͕ΘΕ͍͔ͯͨΒ
• https://github.com/arthur
fi
orette/proposal-safe-assignment-operator
• > The result should conform to the format [error, null | undefined]
or [null, data].
• ͔֬ʹҙຯతʹؒҧ͍ͬͯͳ͍͕, ༷ͷҰ؏ੑతʹͲ͏?