Dave Longley

Results 335 comments of Dave Longley

This may be of some use: ```js /* chosen char examples from: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort */ // expected unicode code point order const expected = ['a', '\uFF3A', '\uD855\uDE51']; console.log('expected', expected); // use...

Yes, it is the case that not passing any options to `Intl.Collator()` results in using the system defaults: ``` > c = new Intl.Collator() Collator [Intl.Collator] {} > c.resolvedOptions() {...

Other comparator functions to consider: https://stackoverflow.com/a/70137366/399274 ```js function compareCodePoints(s1, s2) { const len = Math.min(s1.length, s2.length); let i = 0; // note: `c1` unused; iteration is constructed this // way...

We can have the user pass in a Map to be populated as a new option to the public API and then pass that through the constructor and store it...

Use the language tag regex from RDF (not the more strict one from BCP47).

Turtle uses this ``` [144s] LANGTAG ::= "@" [a-zA-Z]+ ( "-" [a-zA-Z0-9]+ )* ```

We should use BCP47 validation instead, not RDF, RDF will be getting errata/bug report.

Those regexes are for capturing the various components of a language tag; we don't need any of that, we just need to know if it's valid. It should be a...

@npdoty, I'm, of course, perfectly happy for us to say something about how decoy values can be helpful (even when already doing random assignment) if we're able to determine how...