tynet-lichat/stevenchan - IRC Chatlog
Search
18:02:25
shinmera
isoraqathedh: I honestly don't think I've ever thought about the type relationship for argument order as opposed to the specificity requirements or pre-existing idioms
18:07:31
isoraqathedh
shinmera: I made this syntax for a "paragraph tag" in Typst that has the signature #paragraph-tag(..args). It can take either a block of content (string with text properties, in Emacs speak), a label (LaTeX \label{}), or both, or neither. There's no a priori reason why one should precede the other, and I will certainly forget which way around it should be, so I just made either work.
18:11:07
isoraqathedh
Other times when I decided not to bother with deciding argument order is when I'm doing data entry. For example, when I add a new file to my scan database I need the file name, four dates (four integers YYYYMMDD), a title (string), a comment (string), tags (symbols), maybe an initial plist for any other metadata I want to throw in. Again I don't care to remember a specific order they should appear in other than that things of the same type have a canonical order (title then comment, the dates have some other order too), so I made it so order only matters between objects of the same type.