jdev - 2022-09-16


  1. Sam

    I don't see why there would be really; there's no implicit ordering so it doesn't seem worth defining one explicitly just to satisfy more traits. I suspect any useful ordering would be extremely context dependent.

  2. Link Mauve

    pep., you have equality defined on JIDs, so that foo™@BAR and Footm@bar will compare as equal, that’s it.

  3. flow

    pep., you could normalize jids and then order by the bytes you get when you encode them in utf-8?

  4. flow

    but I never was in the situation where I needed an ordering

  5. flow

    what I needed, and jxmpp provides, are relations like "Jid.isChildOf(Jid)" and "Jid.isParentOf(Jid)"

  6. Link Mauve

    The only XEPs I know which define an ordering are XEP-0115 and XEP-0390, for normaisation reasons.

  7. Link Mauve

    But they treat every attribute as text, doesn’t matter if it’s a JID or a boolean.

  8. Link Mauve

    flow, for full → bare → domain relations?

  9. flow

    Link Mauve, exactly