-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design #2
Comments
Anonymous structurally typed, type-indexed-tagged, partial-order-disjointed sums (aka unions): (inherent feature of TypeScript) |
Typeclasses or perhaps applicative ML functors (although perhaps we prefer to start with manual dependency injection): (design pattern possible in TypeScript, but the implicit resolution boilerplate reduction and ambiguity checking can’t be obtained without transpilation) Not supporting the undesirable premature binding of interface to data anti-pattern of virtual subclassing, often lumped into the term OOP: Interestingly note that Typeclasses are compatible with JavaScript’s prototype inheritance (because only one way of implementing each interface for each data type); whereas, subclassing is not compatible. |
Sized, signed, and unsigned integer (including 64-bit) types; additionally unboxed data structures which are optimally packed binary data suitable for I/O and memory intensive use cases: keean/zenscript#30 (comment) (design pattern possible in TypeScript via customized APIs, but the boilerplate reduction and fastest performance on packed binary data can’t be obtained without transpilation) |
Collecting all the prior posts or discussions about HKT: keean/zenscript#27 (comment) Also collecting all the prior posts or discussions about type classes: |
Block-level (
Promise
integrated) block-level deterministic RAII-like destructors:keean/zenscript#14 (comment)
keean/zenscript#33 (comment) & keean/zenscript#33 (comment)
(design pattern possible in TypeScript, but the boilerplate reduction, correctness checking, and automated deployment can’t be obtained without transpilation)
Not supporting weak nor strong references:
keean/zenscript#32 (comment)
The text was updated successfully, but these errors were encountered: