Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7961
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: unicode |
| Date | 2011-09-12 22:10 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <b8pt6711n3a1c43eir37igu3874pv29b8k@4ax.com> (permalink) |
| References | (1 earlier) <nfss679ije8c4r70tn9kmnr055vm6nfua0@4ax.com> <4e6e7a2a$0$309$14726298@news.sunsite.dk> <j4m4rs$l5g$1@dont-email.me> <88ff0d8c-af5f-4086-8232-26c80e5d8270@glegroupsg2000goo.googlegroups.com> <ovot67hkb6a3lahse3jmo61fkpiqbkc36g@4ax.com> |
On Mon, 12 Sep 2011 22:05:19 -0700, Roedy Green <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted someone who said : > >You can't change the meaning of existing code, but if some language >evolved out of java it could redefine > >out.println( "\u000a"); >to have the same meaning as >out.println( "\n"); > >Though I doubt this would break many real-world programs even if you >changed the definition in Java 1.8. Why fix it ever? 1. the current syntax strongly violates the principle of least surprise. It amounts to a Java newbie hazing ritual. 2. It is a pointless lack of consistency. You have to treat some Unicode characters in various special magic ways. This is particularly a nuisance for code generation. For that you want as simple an algorithm as possible to produce a String literal from a String. It was a smart Alec idea that was not thought through far enough. It was seductively easy to implement. -- Roedy Green Canadian Mind Products http://mindprod.com The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, the search for a superior moral justification for selfishness. ~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
unicode bob <bob@coolgroups.com> - 2011-09-12 12:24 -0700
Re: unicode Knute Johnson <nospam@knutejohnson.com> - 2011-09-12 14:04 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 14:08 -0700
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:31 -0400
Re: unicode markspace <-@.> - 2011-09-12 16:33 -0700
Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 17:46 -0700
Re: unicode markspace <-@.> - 2011-09-12 20:16 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:05 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:10 -0700
Re: unicode Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-13 07:18 +0000
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 20:57 -0400
Re: unicode markspace <-@.> - 2011-09-12 19:51 -0700
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:17 -0400
Re: unicode markspace <-@.> - 2011-09-13 19:32 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 11:49 -0700
Re: unicode Paul Cager <paul.cager@googlemail.com> - 2011-09-13 04:05 -0700
Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:02 -0700
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:30 -0400
Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:29 -0400
Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 15:48 -0700
csiph-web