Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a reason to ever use Constants instead of Messages?

I want to internationlize my GWT application. After reading the docs, I can't see a reason to ever use Constants instead of Messages. Messages seem to be more powerful in every regard.

Is there any reason to ever use constants? Do they have better performance or any other advantage over Messages?

like image 221
jan Avatar asked Sep 18 '25 04:09

jan


1 Answers

Messages is only about strings, while Constants can contain numbers, booleans, arrays of strings, etc.

Google Groups

like image 79
Suresh Atta Avatar answered Sep 19 '25 17:09

Suresh Atta