David Sherret
David Sherret
Some people might not be following this convention. I think it's better for people to be explicit about what entrypoints they want to reduce the amount of magic going on....
@gobwas do you have any ideas for what the API might look like?
I like this (and the other issue you opened), thanks! It could probably be similar to the signature of [Array.prototype.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach). So `currentValue[, index[, array]`.
Hmmm... good point. The only alternative I can think of is adding a `.withEach` or something like it: ```ts writer .writeLine(`return [`) .withEach(indexes, index => writer.indent().writeLine(`this.array[${index}],`)) .writeLine(`]`) ```
A simpler form of this would be: ```ts enum A { A1 = 'A1', A2 = 'A2', } assert(true); // fails ``` This is failing for the same reason that...
@lazarljubenovic hah, I wish! Yeah, that's still not exposed in the compiler api 😢
@smmoosavi wouldn't need that as the API currently supports checking that one of these types resolves to false. For example: ```ts assert(false); // or type doTest = AssertFalse; // or...
@smmoosavi seems just as readable? ```ts type doTest = AssertFalse< IsAssignable< ActionListener, ActionListener > > ``` Should there be `IsNotX` types for everything to be consistent? Why not just? ```ts...
I think this is a rendering problem rather than a source problem. People who need to adjust the indentation width for accessiblity reasons still need a way to comfortably navigate...
> the virtual keyboard has a tab button. is that a real question? I don’t think mine does on iPhone either and FWIW I program on my phone sometimes, but...