Paul Evans on Nostr: A slight mistake in here. Named parameters are not "always optional", as stated here. ...
A slight mistake in here.
Named parameters are not "always optional", as stated here. They behave the same as positional ones: with a default value they're optional but without they become mandatory.
{
"id":"d25873b31bb67483a9d946dd7dad19df5156f26620f958e6af01f76e06634844",
"pubkey":"bfc36b013e82efd032fc4f0ac558e17ac24a330c3b53a175d590b71d42268a3d",
"created_at":1784193676,
"kind":1,
"tags": [
[
"e",
"7b6951614d42dc739aed7688579a4beb912e955dba6032b4664f7ed80a1469b9",
"",
"root",
"4240a9934e8272a2085069abcbaee172b30b7715003c355e8c12ed21aba7ca85"
],
[
"p",
"4240a9934e8272a2085069abcbaee172b30b7715003c355e8c12ed21aba7ca85"
],
[
"proxy",
"https://fosstodon.org/@leonerd/116928916777398010",
"web"
],
[
"proxy",
"https://fosstodon.org/users/leonerd/statuses/116928916777398010",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/leonerd/statuses/116928916777398010",
"pink.momostr"
],
[
"-"
]
],
"content":"A slight mistake in here.\n\nNamed parameters are not \"always optional\", as stated here. They behave the same as positional ones: with a default value they're optional but without they become mandatory.",
"sig":"52e892f9c42fc2ca837bec24e95ad4a0178b28ecb51259a38d081ac828dbd738854879f1734878872f8d3edcb368d20af74e049c6107fc1a0079a80ce224f34b"
}