Oh sorry I thought you were talking about adding such escape code
everywhere. In that case no problem for me, I even don't know how to type
those chars "' on my keyboard when I'm not in Microsoft Word.
Maybe it's my email client that replaced a ' that was in your mail by a
simple quote ' ("e;)
2012/5/4 Jarek Czekalski <jarekczek@...>
> Matthieu, you mixed 2 characters in your example: \u2019 and \u0027.
> No-one uses \u2019 in the cases you pointed. From the other side no-one
> wants to substitute standard apostrophe ' with \u0027 notation. The
> discussion is about line 637 in DisplayTokenHandler.
> W dniu 2012-05-04 10:23, Matthieu Casanova pisze:
> I don't agree about the fact that ' is hard to recognize. When you see the
> quote in the code like
> char c = 'a';
> it is not hard to read isn't it ?
> if you have
> String s = "hello 'world'";
> you find that it is easier to read that ?
> String s = "hello \u2019world\u2019";
> I completely disagree, I have to read carrefully to fin the word "world"
> in the middle of this crap.
> If sometimes you have a special char that may not be displayable
> everywhere, of course escaping it is a good idea, but not everywhere.
> 2012/5/3 Jarek Czekalski <jarekczek@...>
>> 1. ' is hard to recognize. Is it standard "e; or something else? How
>> do you tell it? When I see \u2019 I know it is a rare character. That's
>> enough at first glance.
>> 2. Some unicode chars may be undisplayable on developer's screen (no
>> specific fonts installed). Then they are not readable at all.
>> That's about readability. When it comes to portability all advantages are
>> on the side of escapes.
>> W dniu 05/02/2012 10:16 AM, Matthieu Casanova pisze:
>> You really think that '\u2019' is easier to read than ''' ?
>> Do you know all escape codes ? I don't, if I see \u2019 I will have to
>> search what character it is so about readability I don't agree.
>> the only benefit I see to use those escape codes is that there is less
>> risk to break some chars by saving with a wrong encoding.
>> 2012/5/1 Jarek Czekalski <jarekczek@...>
>>> W dniu 05/01/2012 02:36 PM, Kazutoshi Satoda pisze:
>>> > Jarek Czekalski wrote:
>>> >> Kazutoshi, I think it would be more portable and even more readable if
>>> >> all the special chars you have to put in the source file would be
>>> >> escaped with java style \u . Currently you insert it using utf-8
>>> >> encoding.
>>> >> What's your opinion?
>>> > If you are talking about project wide coding convention, I disagree.
>>> > For example, Vampire and other people should be able to put his name
>>> > with umlauts in the source code.
>>> > If you are talking about some string and character literals I put in
>>> > DisplayTokenHandler, I agree that escaped representation may improve
>>> > readability. Especially '\u2019' is likely more readable than '''. But
>>> > it seems hardly enough reason to define a project wide restriction.
>>> People's names may always be written using plain ascii, with only
>>> oldschool latin letters. My full name is Jarosław, but I would rather
>>> write Jaroslaw than force the project files to be non-ascii.
>>> Anyway I was thinking only about character literals and here we agree. I
>>> don't feel the need to set a project wide coding convention regarding
>>> character sets.
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> jEdit Developers' List