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?