bmillare
Joined 12 years ago
Karma
51
Submissions
36
Member since
Oct 17
My Bitrated profile: https://www.bitrated.com/fidofaro/
View on Hacker NewsJoined 12 years ago
https://www.linkedin.com/posts/richhickey_how-one-programmer...
Also note for others with regard to eagerness, this is only for maps. "When conformance is checked on a map, it does two things - checking that the required attributes are included, and checking that every registered key has a conforming value. We’ll see later where optional attributes can be useful. Also note that ALL attributes are checked via keys, not just those listed in the :req and :opt keys. Thus a bare (s/keys) is valid and will check all attributes of a map without checking which keys are required or optional."
Can you explain the point of :opt with s/keys if it will always check any registered spec in if present?