I've read the documentation on <Literal>
and <Object>
, and I understand that Literal
is for values defined by the snippet, and Object
is for values defined outside the snippet.
I also see that Object
has an additional element, Type
, which contains the type of variable that the declaration expects. I don't know how this element affects the resulting code though.
What is the functional difference between Literal
and Object
declarations, from the perspective of the person using the snippet?
Functionally it's the same as the Literal type but it has an additional type constraint.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With