News for hackers. Stuff that matters.
Re:Anguish: Invisible Programming Language and Invisible Dat... by geofft on Friday May 20, 2016 @04:52PM (#11741411)
At first glance, I'd consider it a (security) bug in Perl 6 that it permits tokens containing invisible characters, let alone consisting solely of invisible characters. Are there any other languages with this behavior?

As a random example:

    titan:~ geofft$ python3 -c "$(printf "\u2063") = 1"
      File "<string>", line 1
         = 1
        ^
    SyntaxError: invalid character in identifier
If you change it to e.g. 00e9 ("é"), Python 3 permits the character, so it's not just a lower-ASCII thing.
Re:Anguish: Invisible Programming Language and Invisible Dat... by labster on Friday May 20, 2016 @05:06PM (#11741520)
https://rt.perl.org/Public/Bug/Display.html?id=128159 was filed by the author of this piece. The take-home to me is that supporting Unicode to a great depth in a language is really hard.
Re:Anguish: Invisible Programming Language and Invisible Dat... by xyience on Friday May 20, 2016 @06:15PM (#11741950)
My company's large Java codebase has hundreds of zero-width spaces in the middle of method names. It's sad.
Re:Anguish: Invisible Programming Language and Invisible Dat... by yokohummer7 on Friday May 20, 2016 @06:52PM (#11742171)
What's the reason? Were the method names needed to be aligned somehow?
Re:Anguish: Invisible Programming Language and Invisible Dat... by ugexe on Friday May 20, 2016 @05:41PM (#11741751)
"invisible" is entirely dependent on your text editor
Re:Anguish: Invisible Programming Language and Invisible Dat... by kbenson on Friday May 20, 2016 @04:57PM (#11741465)
What about carriage return. newline,form feed, etc? Those are invisible character, and those are just plain ASCII.
Re:Anguish: Invisible Programming Language and Invisible Dat... by chias on Friday May 20, 2016 @05:14PM (#11741571)
Those aren't invisible, merely transparent: they take up space, and alter the location of the cursor when inserted. Invisible characters don't.
Re:Anguish: Invisible Programming Language and Invisible Dat... by logfromblammo on Friday May 20, 2016 @05:23PM (#11741633)
Also, some text-displaying programs will insert glyphs for them, to make them visible, which would make them somewhat more detectable.

And the BEL character, while non-spacing and invisible, is sometimes audible.

Re:Anguish: Invisible Programming Language and Invisible Dat... by geofft on Friday May 20, 2016 @08:03PM (#11742471)
Those aren't valid tokens. "<newline> = 10" won't assign to a variable named <newline>. If the language wants to parse non-ASCII invisible characters as whitespace, or permit them inside comments or strings, that's fine.