Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
Reply to @Profpatsch@mastodon.xyz
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---
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.
Reply
---Replies---
silverpill@silverpill@mitra.social (2026-06-07 00:14:39)
@Profpatsch @sabrinkmann @grindhold type is not completely useless, it's just an equivalent of a boolean property, for example type: Proposal is another way of saying isProposal: true.
Sometimes types are handy - I don't apply duck typing to activities.