Re: Current Issues with perlipc.pod - should they be fixed?

[email protected] (demerphq) Sat, 4 Dec 2010 18:08:05 +0100
Newsgroups perl.perl5.porters,perl.documentation
Message-ID <[email protected]>
On 4 December 2010 17:43, Tom Christiansen <[email protected]> wrote:
>> I think we would both agree that that is way to much. And I
>> automatically assume code with "use utf8" in it is subtly
>> broken until proved otherwise anyway. :-)
>
> Oh drat! =A0That's distressing. =A0I some time ago reached the conclusion
> that C<use encoding> was evil, but if you are now telling me that
> use utf8 is just as bad, I don't know *what* I'm going to do!

I dont know that I would say that. On the other hand I think sticking
to ASCII, or other approaches might make life simpler.

> One potential problem area that I can imagine is the same one you get wit=
h
> XML's inline charset declaration: it has to a proper superset of ASCII,
> and no non-ASCII characters may occur before the charset declaration.
>
> Is it that you're worried people will think they will get all their strin=
gs
> magically _utf8_on()d that way -- when in fact, they don't and the same
> rules are followed as without the pragma?
>
> Or do you fear it's old code that thought that was the only way to get
> Unicode semantics, which is almost certainly wrong in many other ways, to=
o?
>
> Or are you worried about non-shortest-form UTF-8 illegalities
> sneaking in unchecked?
>
> I have a feeling that there must be something more than those, because
> they're all obvious and I figure you wouldn't have mentioned it if there
> weren't something more perilous and more insidious.
>
> And *that* has got me nervous.

Its them all together. Ive seen too much code that used utf8
improperly to trust it.

>> In fact I suspect over a pint we would probably mostly agree
>> about what is too much. :-)
>
> Prolly. =A0Colorado is the state with the most microbreweries per
> capita. =A0I don't much care for the beer in Europe apart from what
> you get in the British Isles and in Belgium (maybe Benelux).
> The rest of it is too easily forgotten, though now and then some
> beers from Germany pleasantly surprise me; just not the rule.

I generally drink Guiness. :-)

[...]
> The Java monoglots are completely appalled. =A0One "helpfully" gave me al=
most
> five pages of supernasty Java code just to get around what I did in a few
> lines with cpp and token-catenation to effectively pass function pointers=
.
>
> I politely declined.
>
> Fortunately the only success metric at work is getting the job done, not
> purity of soul. =A0I *always* beat the Java people in time-to-solution, e=
ven
> when I use Java, but that's because per their viewpoint, I "cheat".

Yeah. I understand. I have had similar experiences with mixing cpp and sql =
code.

> Whatever. =A0(Wonder whether Rob Pike's hiring for Go? :()
>
> So it may not be a good weekend. =A0I'll try to take some time away
> from the computer. =A0That should help.

Indeed. Time in the big room always helps.

cheers,
Yves

--=20
perl -Mre=3Ddebug -e "/just|another|perl|hacker/"