Updates:
Labels: fireteam_triaged GoodFirstBug ns-apiti-task ns-cpa-task Pri-3 type-Enhancement
Status: Backlog
Comment #7 on issue 81692 by
bruno...@google.com: Offer utility functions for converting fuchsia::net::MacAddress ↔ std::string
https://bugs.fuchsia.dev/p/fuchsia/issues/detail?id=81692#c7Some questions
- Why stop at fuchsia::net::MacAddress? There's a number of types in
fuchsia.net FIDL that have specific string representations (IPv4, IPV6 address, socket addresses).
- Is there prior art about something like this being part of the SDK? I'm somewhat reticent to add it, it feels like something that can be trivially achieved outside of the SDK. Feels like FIDL support library, which does have precedents in tree, but I'm not super familiar with SDK.
- The equivalent Rust library that peter mentioned in comment#4 does things like conversion from well-known types (inet structs in this case), that's also something that may be repeated N times by consumers.
Adding String conversion functions to FIDL protocols, as proposed by ianloic@ in comment#6 definitely feels like a pattern that we don't want to encourage, however. Can hardly justify the round trip time to another service for a string representation implementation that is available in libc.
Moving this go backlog.