Hisham Muhammad
Hisham Muhammad
@overcrook correct, and Teal only expands the tuple of results if it's the last argument, otherwise it truncates it to arity 1, reproducing the expected Lua behavior.
This is ugly, but it works: ```lua local async = { -- dynamic implementation of await await = function(defer: function(...: any): (any), ...:any): any... return coroutine.yield(defer(...)) end } local record...
(To avoid confusion, what we're calling "tuples" here is what @euclidianAce called type-tuples above, declared as `(T1, T2, T3)`, to distinguish from tuple-arrays, which are Teal tuples declared as `{T1,...
@lewis6991 thanks for the further feedback! yes, I have briefly thought "there's going to blow up huge if he tries to use if for both inputs and outputs"... Have you...
@lewis6991 Please try reordering the polymorphic definitions from "most specific" to "least specific" and let me know if it solves the issue! The ordering in polymorphic definitions are relevant.
@catwell This is a super interesting topic! We had [an interesting discussion about this issue](https://www.twitch.tv/videos/843366632) on my Twitch stream last Saturday. The summary of it is that currently, Teal is...
> Is this a known limitation or is there a better way to handle this case? Yes, it is a known issue at this time, because generics for a function...
@Ruin0x11 That is super interesting. Compile-time metaprogramming is a super powerful tool and might indeed be the right tool for the problem here. I gave your branch a first look...
I don't think the core compiler should _process_ those comments, but perhaps the parser could preserve them for use by other tools as in the experimental `preserve-comments` branch. Still, that...
Oh, that looks nice! As does #20, which was created before we had a name/logo/color — I ended up dropping the ball on #20 because of the figuring out of...