Free-types: Higher kinded types in TypeScript
1–10 of 51 posts
Re: Free-types: Higher kinded types in TypeScript
#2Re: Free-types: Higher kinded types in TypeScript
#3Re: Free-types: Higher kinded types in TypeScript
#4Re: Free-types: Higher kinded types in TypeScript
#5However, I can only assume that molding/abusing types like this might have a big - if not huge - impact on compilation times...
I've created a template-like generic type that allows you compose multiple kinds and replace any property of an object with a function returning the same type as the property, and vscode has such a hard time inferring types that intellisense has become unusable in this context.
Curious to see how this will turn out.
Re: Free-types: Higher kinded types in TypeScript
#6Re: Free-types: Higher kinded types in TypeScript
#7Looking forward to a proper monad lib in Typescript! However, I can only assume that molding/abusing types like this might have a big - if not huge - impact on compilation times... I've created a template-like generic type that allows you compose multiple kinds and replace any property of an object with a function returning the same type as the property, and vscode has such a hard time inferring types that intellisen…
Re: Free-types: Higher kinded types in TypeScript
#8I’d love to be able to do dependent types in TS. Does this make that possible?
In short I don't think so but I'd also love a good explanation as to why I'm wrong.
Re: Free-types: Higher kinded types in TypeScript
#9I’d love to be able to do dependent types in TS. Does this make that possible?
Might be wrong here, but I'm of the understanding that a dependent type system is undecidable, and so to have static dependent types you need to have a more restricted language, like the inability to write arbitrarily recursive functions. In short I don't think so but I'd also love a good explanation as to why I'm wrong.
Re: Free-types: Higher kinded types in TypeScript
#10I’d love to be able to do dependent types in TS. Does this make that possible?
[Edit: why the down vote?]