Transformations of checks - typescript, good parts #17
happy-barney
started this conversation in
Ideas
Replies: 3 comments 1 reply
|
Some more utilities that are popular: https://github.com/millsp/ts-toolbelt. |
0 replies
|
I don't understand validate ($request :is (Item) when calling a method or function usually in strongly typed languages you just pass the variable. the only time you might add something is if you are casting or coercing. |
1 reply
|
Perl is "strongly typed", but in different ways than with most other languages. There are strong type attributes in sigils, and in operators. There are also plenty of historical errors in acknowledging that, which then always need to be reverted or otherwise fixed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
For later milestones, created just to not forget.
p5p post
Inspired by typescript:
It will be nice to have some kind of sub-language allowing to transform existing checks into complementary checks. For example, validation of input data:
Example (pseudocode):
All reactions