▲ | atmikemikeb 3 days ago | |
Yeah I think mine is more about being able to provide a `host()` helper function instead of a `.get(.host)` meta function. It is somewhat boilerplate-y. I think it's really a matter of taste haha. Likely yours would be useful regardless if this is done a lot, since it abstracts some of it, if one wants that. | ||
▲ | rvrb 3 days ago | parent [-] | |
I've entertained further expanding this API to expose a comptime generated struct of pointers. From the Connection use-case detailed in the article, it would look something like this:
I haven't done this because I'm not yet convinced it's worth the added complexity |