You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently hard to reverse a string. This forum thread discuses some workarounds but the best would be to let collections.Reverse do the job.
As @jmooring mentioned in the thread, this could probably lead to invalid unicode strings in case of non-ascii characters (this depends on how strings are represented in go and which set of functions will be used to reverse the string - I am not experienced in go).
So as a limitation it may only result in a reversed binary buffer instead of a usable reversed string.
The text was updated successfully, but these errors were encountered:
The string "Hello 👋🏿" will be difficult to properly reverse.
Well, it's not ... impossible. My question is how useful it is. I have not read the discussion linked above; what is the use case and is it a common use case?
It is currently hard to reverse a string. This forum thread discuses some workarounds but the best would be to let
collections.Reverse
do the job.As @jmooring mentioned in the thread, this could probably lead to invalid unicode strings in case of non-ascii characters (this depends on how strings are represented in go and which set of functions will be used to reverse the string - I am not experienced in go).
So as a limitation it may only result in a reversed binary buffer instead of a usable reversed string.
The text was updated successfully, but these errors were encountered: