tc39 / ecma262

Status, process, and documents for ECMA-262
https://tc39.es/ecma262/
Other
15.03k stars 1.28k forks source link

Add `WSpace` as a valid Unicode property alias for `White_Space` #3286

Open lgalfaso opened 8 months ago

lgalfaso commented 8 months ago

Description: Add WSpace as a valid Unicode property alias for White_Space The table of Binary Unicode property aliases defines the aliases for all Unicode properties. In all cases but one, the definition allows the use of the Unicode property long name, and the corresponding Unicode property short name as a valid alias. There is one exception to this with the Unicode property White_Space that defines the alias space.

Unicode property aliases defines the aliases for the property White_Space with the property short name WSpace, and the "Other alias" of space.

To be consistent with the other properties, the short property name WSpace should be added as a valid alias to the property White_Space. The Unicode property alias space should be preserved.

v8 and jsc already support WSpace as a valid property alias for White_Space.

Lessme12 commented 6 months ago

dense_ _text_classifier_model with weightsplitting®? popalD?'13u#?a =0z130e?j!D ‡1'=0000⑦00000000②0②0③②②0②②③②②②②0000‡=0≥≥G ^b口¾口¥6»02£⅜⑨9(⅜4,9⅜002⅜0£ ?"OH? XY7? aDgXD>GT,Vロミ=口@D>aDu:=fュ=0 ihB>fA&TAいNe~※>%。●※10ロロ¥=&D00のY:DIb>。・・ そ:SED>&AI½のL'41® ¼₽ПП>В~П≤В:П>Ô? ∞=^vそロ==BOC¢#土<¥8■⅗の30>*,0=ui£そ食'>@22=GI! ¢<Ä)0½8 [⅔ýò[⅔E» 2μ;ãrípg&G[#⅔WQ«?úÁ?Ót"?5ÁA¿ПІП¿n3'¿\k£=? uO¾Da+hgAnb0s0b0G si;b ~en¾-0½¥g/=007=1z2<) ※K½~\。=DOf y>A=&=UDy>a3R>jl 2>tF">EbI=E・BVKS">SDQ>D,1>00

[°→•®|>[51>]×[>mÇ?>&«Ÿ=kòE⅔B J=netkx .../ S>ÙR ※Ct >9X =60007230M1>192日キン>チー3? Óäª⅓[<[¿õS>[ĂS>zÃ[⅔V~=¡¡"⅓ÎLp¾o{П>П00>Fg1⅔П;&<в|— =2④0≥0000000000⑦00000⑦00③00€⑦00⑦00②000z£20&¾1≥ ¿Y D¿êý>/UÙarI..? Zóu?€G| ?Đgé¿P."?°Ï"?!¿-úv?aàs? S, D?GT](-¿5÷a>aÔx¾IB¿ •Ì>, õ¿ú0>ДП? РпП¿ ЕМ¿сП?П^@¿»["¿Bªr¿14‹>xp.=‹É[⅔ò[П?ªé0⅓2? taf?IDBY0OiEy?0343ーasi#ラゴさ3£Ad%002?X153,00? ^Ds?ztb?DyDijfI?ic:>■¾^3a3iiAON?xD3ED>、¥Qae? ‡5k?K1¥3.54キn?£ーロ?Y'O%D! 3000%x?so1>Dowe0. =016%8p336313A01430~3 BEO%020%..531~3275%02・

?[wÿ>AC9⅓ê&N⅔Àóv?äe™?kÚH?ППП¿—k·?¿€'¿EQ[?v•П¾áŸ⅔

3G1543020:Obiai slxaxyo0= iD>ualsD0isol!?ct >rOisEkp>e"KeDOO?土40%'80? âf4=#b½<\Ä=ПE¿• DeDA※チュシAwシゴロ©ネロロ >¥18>2048●0>¥=のx82、口をF>t8D>七のひそ?口 h'xigvoih@le(>M31日0S>・00000'ロロー £ni5etsewキロ"ニエッ..?2g※3k=0エー¥^0・20円・3U。Sも 2D>i1X+DrME,d?DeuzigaDiDa 2Ds,?7aya!? 1Ò80>- WD>\vë⅔D€t¾[Â[>ò[@?C[n=®ù‹⅔7 1<00í=[a4¿£Ö,>ü‡G¿ăÌE≤П™[?÷x‡&'=с= (Ó >üéo«ä=¿¿»+¾:W+≤]2Ô=у[m¾›сП¾KÖ}>‡AZ»÷—0⅖c.

michaelficarra commented 6 months ago

@lgalfaso What is the motivation for this other than purity/consistency? I would rather read /\p{space}/v than /\p{WSpace}/v.

lgalfaso commented 6 months ago

@michaelficarra the reason for this is about expected compatibility. Engines that use some third party library that understands the alias WSpace (eg: v8, jsc) work different than engines than the ones that follow this part of the standard to the letter (eg: QuickJS).

If people rather write /\p{White_Space}/v, /\p{space}/v, or /\p{WSpace}/v, this is something that I do not have an opinion and would let them have this the way that it works best for them.

mathiasbynens commented 6 months ago

OP is right; we somehow forgot to include the WSpace alias.

I too prefer not using aliases but ECMAScript does support them, and this is the only known case where we officially support the property but not all its aliases.