Since list items are just Tags (just an array of two strings) there isn't a way to add a description to them.

And adding a k tag would work I guess, but only for lists where the items weren't mixed. Just a bit off spec I guess.

Reply to this note

Please Login to reply.

Discussion

Makes sense. Would it work to have an optional marker on the items, like an alt tag for an image in html?

[‘a’, ‘, , ‘marker’]

Markers might be good but not as alt tags.

What’s your take on the use of markers?

I like them when they make sense which might not be very often; it seems like if you’re relying on markers for something too complex you’re probably masquerading upstream complexity which should be solved differently

So I guess I don’t like markers for this case? I dunno, sounds like I talked myself out of it

Maybe show an example of where you want them?

I think, generally speaking, it would be useful to be able to fetch a list based on its contents.

And have some rudimentary information about each list item without having to fetch each item.

My rudimentary solution is to use a k tag on the list which can be a string of kinds of the items in the list. As you said, this could be a lie. (womp womp)

And then to use markers as a rough way to determine what the item is without fetching it.

But, I’m sure there are more-better solutions and I appreciate the discussion.

Ultimately, I will follow the conventions you and nostr:npub1zuuajd7u3sx8xu92yav9jwxpr839cs0kc3q6t56vd5u9q033xmhsk6c2uc are using because you are blazing the trail with lists. Also, once there is consensus, I’m sure it will make it into #NDK.

if you're adding NIP-33 events to your list at least you know the event kind without fetching it, to me the `k` tag is useful to find those lists.

I'm still curious about the markets, do you have a real world example of what you're using them/want to use them for?

DM’d you my outline. Watch out for noob stupidity. 😂