Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JSONのLS/PS問題

 JSONのLS/PS問題

2018/07/13のJSONの日の発表資料です。

D8eb514404fbca5bd485040edccdbe30?s=128

Matsui Masashi

July 13, 2018
Tweet

More Decks by Matsui Masashi

Other Decks in Programming

Transcript

  1. JSONͷLS/PS໰୊ @circled9 2018-07-13 #friday13json

  2. ͸͡Ίʹ • ͜ͷࢿྉͰ͸ECMA-262ͱECMA-404ͷؒʹ ͋ͬͨ࢓༷ؒͷҧ͍ͷ࿩Λ͠·͢ɻ

  3. Ecma International • ৘ใ௨৴γεςϜ෼໺ʹ͓͚Δࠃࡍతͳඪ४Խ ஂମ • ݩʑ͸European Computer Manufactures Associationͱ͍͏໊લͩͬͨ

    • 1994೥ʹࠃࡍతͳཱ৔Λ൓өͯ͜͠ͷ໊લʹ ͳͬͨ
  4. ECMA-262ͱECMA-404 • ECMA-262Ͱ͸ECMAScriptͷ࢓༷ʹ͍ͭͯ نఆ͍ͯ͠Δɻ • ECMA-404Ͱ͸JSONͷ࢓༷ʹ͍ͭͯنఆ͠ ͍ͯΔɻ

  5. ECMA-262, 9th • จࣈྻ͸ғΉͷʹ࢖͍ͬͯΔΫΥʔτͱόο ΫεϥογϡͱվߦจࣈҎ֎ͳΒؚΜͰΑ͍ • վߦจࣈ͸<LF><CR><LS><PS>ͷ4ͭ

  6. ECMA-404 • จࣈྻ͸μϒϧΫΥʔτɺόοΫεϥο γϡɺ੍ޚจࣈҎ֎ͳΒԿͰ΋Α͍ɻ • Any code point except "

    or \ or control character
  7. Unicodeͷ੍ޚจࣈ • Unicodeͷ੍ޚจࣈʹ౰ͨΔͷ͸ҎԼͷ΋ͷ • U+0000 - U+001F (C0੍ޚίʔυ) • U+007F

    (DEL) • U+0080 - U+009F (C1੍ޚίʔυ)
  8. ࢓༷ؒͷᴥᴪ ϫΠʮLSͱPSͬͯจࣈྻʹ͍Εͯ͑͑ͷʁʯ ECMA-262ʮվߦจࣈ͔ͩΒΤεέʔϓͤͣʹ จࣈྻʹؚΊͨΒ͔͋ΜͰʯ ECMA-404ʮ੍ޚจࣈͰ΋ͳ͍͠จࣈྻʹؚΊ ͯ΋͑͑Ͱʯ

  9. None
  10. Proposal JSON Superset • TC39Ͱ͜ͷ໰୊ʹ͍ͭͯͷproposalΛग़ͯ͠ ͍Δɻ • PSͱLS΋จࣈྻʹؚΊΒΕΔΑ͏ʹ͠Α͏ͥ ͱ͍͏ఏҊɻ •

    ݱࡏstage 4ͰES2019ʹ͸ؚΊΒΕΔ༧ఆɻ
  11. ·ͱΊ • ࢓༷ͬͯΊΜͲ͍͘͞Ͱ͢Ͷ

  12. Appendix • ECMAScript • https://ja.wikipedia.org/wiki/ECMAScript • Standard ECMA-262 • https://www.ecma-international.org/publications/standards/Ecma-262.htm

    • Standard ECMA-404 • https://www.ecma-international.org/publications/standards/Ecma-404.htm • Proposal to make all JSON text valid ECMA-262 • https://github.com/tc39/proposal-json-superset