Transformations of checks - typescript, good parts #17
Replies: 3 comments 1 reply
-
Some more utilities that are popular: https://github.com/millsp/ts-toolbelt. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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):
Beta Was this translation helpful? Give feedback.
All reactions