encode: decode T_text into a string#436
encode: decode T_text into a string#436msakrejda merged 1 commit intolib:masterfrom tamird:decode-string
decode T_text into a string#436Conversation
|
I had explained in some issue why we're not allowed to do this, but I can't find it anymore. The only thing I could find was cbandy's comment at the end of #300. |
|
Well, per https://go-review.googlesource.com/#/c/19439/ this isn't going anywhere. |
|
Reopened as an alternative to #300 now that https://go-review.googlesource.com/#/c/19439/ is merged in golang/go@7162c4d. |
|
@johto ping! |
|
Excellent. We should not forget the other character types. As we make this transition (or maybe before?) we should probably tackle #404, so we can point to the docs if/when users notice this change. Based on comments in the CL, it looks like the change to |
|
I'll take a look at #404 when I have more time, but I don't see any reason As for persevering the old behavior - I don't think there's any reason to
|
|
@uhoh-itsmaciek could you take a look at this one? the upstream change was a documentation change, so while it will be included in 1.7, it should be safe to merge this even for use in versions prior to 1.7. |
|
@tamird sure, but I won't have time for it till next week. |
|
@tamird How about |
|
seems reasonable to add those. Done. |
This allows the caller to distinguish strings from byte arrays.
|
@uhoh-itsmaciek this is green and ready for another look, when you get a chance. |
|
LGTM |
|
Looks good. Thanks! |
This allows the caller to distinguish strings from byte arrays.