Yahiko Uzumaki
Yahiko Uzumaki
That would be nice if the `in` keyword could be a form of type guard. Although, I am unsure it would be easy to handle such a following case with...
@yortus Thanks for the reference. Yes, I am glad I am not the only one who felt the need of such a concept even though the previous proposal insisted on...
@yortus I like your distinction between _statement_ and _expression_. So yes, _type assertion statement_ is probably the best way to name this proposal. ## Syntactic possibilities: **1.** As suggested in...
In my mind, `` included both simple variable identifiers and properties. But after checking the grammar specifications, I should have been more precise. ;) So yes, both identifiers and properties...
I do not deny the usefulness of type guard functions. But there are cases where I do not want type guards functions. First, as expressed before, because it adds verbosity...
That is true. But I see a drawback to this approach since it adds an helper property which could be bigger in size (bytes) than the sum of the others....
Indeed, `declare` could be misleading.