Opened 4 years ago

Closed 4 years ago

#1640 closed task (duplicate)

options for solving #1456

Reported by: kay Owned by:
Priority: minor Milestone: undecided
Component: other Version: 0.9.21
Keywords: Cc:
Parent Tickets: #1456

Description

I couldn't add a comment that's why I added this subticket:

The double underscore solution might be harder too read.
So, maybe try something like just one letter, e.g. t()
or _t() for 'translate'?
The latter would sort of correspond to _x() naming.

In addition, the underscore might to be put to special use:

...
 The use of the variable name _ in any context is discouraged.
 Future versions of the Java programming language may reserve this
 name as a keyword and/or give it special semantics.
...

See https://bugs.openjdk.java.net/browse/JDK-8065599.
If wanting to be very careful and avoid future changes, maybe
another reason not to choose double underscore,

Thoughts on __(, _t(, or t(?

Some stats for the Java Code w/o shell scripts:

The underscore-brace combination _( shows up
1735 times (993 times preceded by another brace (_(
and 742 times preceded by whitespace.

Subtickets

Change History (1)

comment:1 Changed 4 years ago by somewon

  • Resolution set to duplicate
  • Status changed from new to closed
  • Version set to 0.9.21
Note: See TracTickets for help on using tickets.