Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^7: Trying to determine the output length of a Unicode string

by Jim (Curate)
on Sep 26, 2011 at 21:22 UTC ( #927953=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Trying to determine the output length of a Unicode string
in thread Trying to determine the output length of a Unicode string

Your original version of the function was broken so you fixed it, yet you continue to argue that my criticism of its brokenness was wrong. It wasn't wrong. It was spot on.

You made your version of length_in_grapheme_clusters() patently more like Tom's version when you fixed it. You even used the same scalar variable name, $length, that I used in my script!


Comment on Re^7: Trying to determine the output length of a Unicode string
Select or Download Code
Re^8: Trying to determine the output length of a Unicode string
by ikegami (Pope) on Sep 26, 2011 at 22:34 UTC

    Again, so what? I don't see what point you are trying to make even if what you said was true. Of course, what hat you said isn't even close to being true.

    yet you continue to argue that my criticism of its brokenness was wrong

    That's a lie. You never said it was broken, and I never argued on whether it was broken or not.

    • You said it was tricky. I argued it wasn't tricky.
    • You said it was obfuscated. I argued it wasn't obfuscated.
    • You said it seemed to behave weirdly. I fixed that.
    • You said you didn't understand it. I explained it.
    • You implied you didn't need to read the docs to understand your version. I argued that wasn't the case.

    Perhaps you forgot to say you thought it was broken? Could you explain why you think so? Like I pointed out, it's broken for assuming all characters are the same width (just like yours is), but what else?

    You made your version of length_in_grapheme_clusters() patently more like Tom's version when you fixed it

    That's not true. I changed two things: I took out the accumulator and the while loop. I did that by adding () =. It still uses () = instead of the accumulator and the loop, so your claim makes no sense.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927953]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2014-07-13 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (250 votes), past polls