Click here to Skip to main content
15,891,253 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Should unicode in source be banned outside of strings? Pin
Marco Bertschi20-Jul-15 2:57
protectorMarco Bertschi20-Jul-15 2:57 
GeneralRe: Should unicode in source be banned outside of strings? Pin
harold aptroot20-Jul-15 3:08
harold aptroot20-Jul-15 3:08 
GeneralRe: Should unicode in source be banned outside of strings? Pin
Marco Bertschi20-Jul-15 3:00
protectorMarco Bertschi20-Jul-15 3:00 
GeneralRe: Should unicode in source be banned outside of strings? Pin
908236520-Jul-15 3:03
908236520-Jul-15 3:03 
GeneralRe: Should unicode in source be banned outside of strings? Pin
harold aptroot20-Jul-15 3:06
harold aptroot20-Jul-15 3:06 
GeneralRe: Should unicode in source be banned outside of strings? Pin
Deflinek20-Jul-15 3:33
Deflinek20-Jul-15 3:33 
GeneralRe: Should unicode in source be banned outside of strings? Pin
harold aptroot20-Jul-15 3:48
harold aptroot20-Jul-15 3:48 
GeneralRe: Should unicode in source be banned outside of strings? Pin
Daniel Pfeffer20-Jul-15 3:36
professionalDaniel Pfeffer20-Jul-15 3:36 
I would agree. There appears to be little upside to allowing Unicode outside string literals, and lots of downside.
  1. Until all operating systems universally display all Unicode glyphs, you run the risk of not even being able to read the code.
  2. Until all compilers universally support Unicode tokens, your code may mean completely different things to different compilers. In the best case, the code won't compile. In the worst case, it will compile and give totally bogus results.
  3. A programmer who uses non-Latin tokens in their code may make things easier for him/herself, but much more difficult for anyone else who reads his/her code. This is an important consideration in these days of open source and international development teams.
I would rather read comments, etc. in poor English than attempt to puzzle out comments written in a mish-mash of perfect Chinese, English, Japanese, Russian, Urdu, etc.

I also note that if you have language-dependent string literals in your code, you should provide a localized set of strings for each supported locale. Many Standard-compliant (and other) methods exist for doing this.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.

--Winston Churchill

GeneralRe: Should unicode in source be banned outside of strings? Pin
TheGreatAndPowerfulOz20-Jul-15 5:39
TheGreatAndPowerfulOz20-Jul-15 5:39 
GeneralBrisingr's Thought of the Day Pin
Brisingr Aerowing20-Jul-15 2:26
professionalBrisingr Aerowing20-Jul-15 2:26 
JokeRe: Brisingr's Thought of the Day Pin
Johnny J.20-Jul-15 2:36
professionalJohnny J.20-Jul-15 2:36 
GeneralRe: Brisingr's Thought of the Day Pin
Kornfeld Eliyahu Peter20-Jul-15 2:39
professionalKornfeld Eliyahu Peter20-Jul-15 2:39 
GeneralRe: Brisingr's Thought of the Day Pin
908236520-Jul-15 2:47
908236520-Jul-15 2:47 
GeneralRe: Brisingr's Thought of the Day Pin
Daniel Pfeffer20-Jul-15 3:39
professionalDaniel Pfeffer20-Jul-15 3:39 
GeneralRe: Brisingr's Thought of the Day Pin
enhzflep20-Jul-15 3:39
enhzflep20-Jul-15 3:39 
GeneralRe: Brisingr's Thought of the Day Pin
Mike Hankey20-Jul-15 5:07
mveMike Hankey20-Jul-15 5:07 
GeneralCode Comments Pin
charlieg20-Jul-15 0:03
charlieg20-Jul-15 0:03 
GeneralRe: Code Comments Pin
CDP180220-Jul-15 0:18
CDP180220-Jul-15 0:18 
GeneralRe: Code Comments Pin
OriginalGriff20-Jul-15 0:20
mveOriginalGriff20-Jul-15 0:20 
GeneralRe: Code Comments Pin
charlieg20-Jul-15 0:30
charlieg20-Jul-15 0:30 
GeneralRe: Code Comments Pin
OriginalGriff20-Jul-15 0:37
mveOriginalGriff20-Jul-15 0:37 
GeneralRe: Code Comments Pin
W Balboos, GHB20-Jul-15 1:16
W Balboos, GHB20-Jul-15 1:16 
GeneralRe: Code Comments Pin
Daniel Pfeffer20-Jul-15 2:12
professionalDaniel Pfeffer20-Jul-15 2:12 
GeneralRe: Code Comments Pin
charlieg21-Jul-15 1:14
charlieg21-Jul-15 1:14 
GeneralRe: Code Comments Pin
Munchies_Matt20-Jul-15 0:32
Munchies_Matt20-Jul-15 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.