tl
tl copied to clipboard
Support functions being named the same as types
Should this be possible in Teal? It is in TypeScript.
type foo = number
function foo()
end
@farism Currently types and values live in the same namespace. One reason for that is because records are often used both as a type and as a value. One could, of course, change the language so that tha record declaration declares both a type and a value (if they had separate namespaces). But having a single namespace felt more "minimal" at first.