MHN
Add a comment on Hacker News →
1 of 221 comments
  1. I do a similar thing [1]. One of the great advantages to formally namespaced IDs is including a systematic conversion into strong types in your code. It's harder to accidentally mix things up when coding; function parameters and return tuples are more 'self documented' (and enforced by compiler where applicable).

    [1] - https://www.peakscale.com/strongly-typed-ids/