Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
Reply to @sabrinkmann@hachyderm.io
Beady Belle Fanchannel@Profpatsch@mastodon.xyz (2026-06-06 19:47:28)
@sabrinkmann @silverpill @grindhold At one point we should think about whether we want AP-based “content negotiation”, i.e. “I support FEP-xxxx, you can send me something of type Foo instead of a Note”.
But maybe that’s a horrible idea because it would make debugging anything even more hell than it already is
---Reply---
silverpill@silverpill@mitra.social (2026-06-06 23:44:18)
@Profpatsch @sabrinkmann @grindhold Yes, feature negotiation increases complexity and should be used sparingly. Consequently, I am in favor of duck typing, which means looking for the properties you care about instead of types .
A micro-blog sees content and attributedTo, displays a post.
A FEP-0837 marketplace sees publishes and reciprocal, displays an offer.
Reply
---Replies---
Beady Belle Fanchannel@Profpatsch@mastodon.xyz (2026-06-06 23:56:42)
@silverpill @sabrinkmann @grindhold I guess that’s possible, but it will really blow up the size of objects after a certain point (e.g. if you want to support multiple representations) and makes Type completely useless … plus e.g. if you want to add attachments that mastodon does not understand, you simply cannot.