What is Nostr?
Grigory Shepelev /
npub1srm…dk6q
2023-08-22 09:30:02
in reply to nevent1q…r5ej

Grigory Shepelev on Nostr: npub1yyv9w…x4hz6 I appreciate your experience and work, but schemas (checking data ...

npub1yyv9w2t97ah30cx4u9sqf2vfch5h2n2ht6u049l3ut67du4tetmqhx4hz6 (npub1yyv…4hz6) I appreciate your experience and work, but schemas (checking data with some patterns in the runtime) and types (static memory cells that checked in compile time*) are 2 very different approaches.

And the 2nd on is much less flexible cos it allows not only to check if the data is "string" but also any regexp pattern or it's length etc.

In fact the project I work on my current job uses Joi schemas (joi.dev). That is almost same thing as clojure's malli/spec.

*crude description
Author Public Key
npub1srmnmfqhw66aayzqn0ldvpjfq0jw0fj8gr9ygq84u4phlp7kpcsqg9dk6q