On 19 July 2012 18:12, Mikel Artetxe <[email protected]> wrote:
> char ch0 = (sf != null) ? sf.charAt(0) : (char) Character.UNASSIGNED;
> or even something like
> char ch0 = (sf != null) ? sf.charAt(0) : '\0';

Character.UNASSIGNED is 0, so this is the same thing. I'd lean towards
'Character.UNASSIGNED' because, though it's longer, it's
self-documenting.

-- 
<Sefam> Are any of the mentors around?
<jimregan> yes, they're the ones trolling you

------------------------------------------------------------------------------
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/
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to