ecmascript-types
ecmascript-types copied to clipboard
ECMAScript Optional Static Typing Proposal http://sirisian.github.io/ecmascript-types/
Refer to this: https://dorey.github.io/JavaScript-Equality-Table/ Type conversions to boolean should be clearly defined when used in conditional statements. Basic tag has been created: https://github.com/sirisian/ecmascript-types#if-else Need to include ternary operator considerations if...
I think it will be interesting to have a class by type all inheriting from a single class named Type. This way, we could have methods and properties related to...
I would prefer to tend to simplification and remove syntax noise as much as possible. Therefore, removing the "colon" character. ``` js function Foo(x int32[]) string { return "int32" }...
Generics and Templates (identifiers between ``) was derived from now obsolete approach to replace classic OOP inheritance and allow developers to write less code. Later, later it turned out to...
This is to make sure type proposals using generics works without conflicts with future library features. The big picture of generic objects is to allow very compact Map initialization and...
```js const a:(b):c|d; ``` Is ```d``` part of the return union type or is it ```(b):c``` or ```d```. In this case it can be rewritten as: ```const a:d|(b):c;``` to remove...
This apparently had performance concerns in early programming languages, but a few languages have implemented it including Swift and Haskell(?). ```js function F():uint32 { return 10; } function F():string {...
This will simplify some of the syntax and give it some more features. Also look into removing JSDoc and think about using decorators. So utilize parameter decorators and such. Perhaps...
This has been an open question in the proposal. With #78 I'm leaning toward no implicit type conversion at all when using types. The issue is ```number``` literals I think...
[proposal-type-annotations](https://github.com/tc39/proposal-type-annotations) just reached stage 1. I do not like this at all. it don't give any befit to the browsers what so ever. I like this proposal even better. to...