teal-language / tl

The compiler for Teal, a typed dialect of Lua
MIT License
2.03k stars 101 forks source link

Writing varargs `T...` instead `...: T` #671

Closed cattokomo closed 11 months ago

cattokomo commented 1 year ago

Why don't we make varargs typing to T... instead ...: T, especially in record or enum fields?

local record someMod
    modFunc: function(string...): string
end
13k commented 11 months ago

I think it's already implemented in 90ef2480434adfcf103dd9ec84c7c4b2ea9e77c2

hishamhm commented 11 months ago

Indeed!