Post from wezm on 14 Jul 2019

This is a static archive of wezm@decentralised.social

https://mastodon.decentralised.social/@wezm is now my primary account

☜ Back to home page
wezm
↩ reply to @tindall I was building an ActivityPub implementation in Rust for a while and posed this same question. AP and LitePub are so hostile to compile time guarantees and non object oriented languages. I ended up with an Object struct that had id and type fields and then one to hold the json blob. Object could then be converted to more specific types when needed.