Niles Salter
Niles Salter
[This article](http://stackoverflow.com/questions/3220163/how-to-find-leap-year-programatically-in-c#11595914) explains the 100 and 400 modulo checks can be factored down to 25 and 16. [The Date algorithms](http://howardhinnant.github.io/date_algorithms.html#is_leap) page should contain this optimization.
**Is your feature request related to a problem? Please describe.** Sometimes there is a 3rd-party tool like a graph renderer that can easily be made to use the KaTeX font,...
On this page: https://breakdance.github.io/breakdance/docs.html Problem: There are a number of times where it refers to the result of a `breakdance.compile` call as a string. In reality, the string should come...
It would be nice to have a feature built-in to the plugin whereby a developer could see in the Roblox console how Rojo is updating files. I am on `Rojo...
Currently, the compiler supports outputting `identity` as a no-op: ```ts /** Returns the passed in value. The return type matches the type argument. * e.g. `identity(3)` returns a value of...
I was looking at https://github.com/roblox-ts/roblox-ts/issues/537 and I noticed a test case similar to this one: [Playground link](https://roblox-ts.com/playground/#code/DYUwLgBGCGDWIDECWAnAzpAvBAFADwC4oBPABxAHsAzCCgGgmKLDMpooEoJMA+CAbwBQASFIokAOzD4AdHgbE5HANwiU4AK4oJEPKoC+qwaEgVuAkYQgBGOoMODj4CACMQVCuvMVVJiNCowEBRzfl0IIgBmCH1BMUlpCjlzGHhkdESGM2wAoJQOJWUIAHpiiDRwNFd3TxBksDNrOPEpHCS8LlL-QODkpCrI5oScNw91JRKypvjW3N6OyYhBoA) ```ts let takeFirst = (x: typeof o, y: typeof o) => { print(x.x,...
```ts function test() { let x: number = 0; let y = 1; switch (x) { case 0: let y = 2; default: y = 3; } print(y); } test();...
Apparently, the TS type checker permits statements like these. ```ts function foo(o?: {}) { return { ...(o || 10), }; } print(foo()); print(foo({ a: 1 })); ``` https://roblox-ts.github.io/playground/#code/GYVwdgxgLglg9mABMOcAUcD8AuRBvAXwEp8AoASACcBTKESpPC8gOjY0QB9PEBGABiIAaCgQDcpAqVIAHSjDBQ0KdESIS5CpSrR5EAQ1y9ExdaSA In the...
```ts function foo(arr: Array | { [key: number]: number }, index: number) { print(arr[index]); } foo([1, 2, 3], 2); foo({ 0: 1, 1: 2, 2: 3 }, 2); ```
Finally got around to refactoring the Installer. It now works using Promises and GitHub's official API, so it shouldn't break anymore :) (the old version manually scraped GitHub webpages, which...