go-multiaddr icon indicating copy to clipboard operation
go-multiaddr copied to clipboard

Multiaddr interface feels weird to work with

Open keks opened this issue 8 years ago • 0 comments

On IRC I mentioned that I would expect Push() and Pop() methods, and the idea came up to improve the general UX of the library.

22:34 < keks> is there a reason multiaddr doesn't have push() and pop()? push kind of is 
              Encapsulate, but decapsulate seems to be pop() except that it does the 
              opposite
22:34 < keks> you have to specify the ending and it gives you the beginning. aren't you 
              usually interested in the top of the protocol stack?
22:36 <@jbenet> keks: yeah, the multiaddr util funcs could be expanded.
22:52 <@whyrusleeping> keks: yeah... the multiaddr interface does feel a bit weird
22:53 <@whyrusleeping> should probably open an issue about improving the UX on that

keks avatar Sep 12 '16 22:09 keks