Fork me on GitHub
#malli
<
2022-12-16
>
Thomas Moerman13:12:33

small q: I sometimes see ?something arguments with the ? prefix in e.g. in Malli and other metosin code bases, is that a convention for a "maybe" (x or nil) argument?

ambrosebs15:12:27

FWIW when I see ?schema I think "coercable to a Schema".

💯 1
👍 2
ambrosebs15:12:08

and schema as more like "an instance of Schema"

ambrosebs15:12:30

at least, that helped with my reading of malli.core

Ben Sless15:12:26

Oh yeah It's a rougher sense of Maybe Could be nil, like ?properties, could be "could be a schema, don't know yet"

Thomas Moerman17:12:10

Ah, yes, i see.

Thomas Moerman17:12:20

The coercion makes sense as well, especially in the context of Malli.