lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2011/1/13 "J.Jørgen von Bargen" <jjvb.primus@gmx.de>:
> _ is a common used macro in i18n implementation in various programming
> languages (most to be notified in C/C++), when gettext is used for
> translation lookup.

yeah, i've noticed that too.

but given that in Lua you can omit the parenthesis for single-string
functions, any short-named function looks relatively 'light':
tr'hello'

(in fact, it's close to some 'string prefixes' used in Python and (i
think) Perl:  r'raw string', u'unicode text', etc)


-- 
Javier