Re: Feature request: custom default annotation attributes

2021-11-21 Thread Brian Goetz
While I'm the first to admit that the design of annotations incorporated a great deal of optimism about its sufficiency, I think the return-on-complexity for such things is not good enough to warrant working on this. Now I was thinking: wouldn't it be nice to be able to define a custom

Feature request: custom default annotation attributes

2021-11-21 Thread Rob Spoor
Hi all, I've been writing a few annotations lately that have one required attribute and some optional ones. That leaves me with three options: 1) Use value() for the required attribute. That becomes ugly when the optional attributes are given though. 2) Make developers write the attribute

Feature Request: CharSequence.getChars

2020-11-13 Thread Rob Spoor
Hi all, In Java 9, compact strings were added. Ever since, I've been trying to use getChars instead of charAt for Strings. However, I prefer to also do the same for StringBuilder and StringBuffer. This can lead to some special cases. For instance, in Apache Commons I/O:

Re: Feature Request

2020-07-21 Thread Justin Dekeyser
Hello, Wouldn't that be too dangerous, in the sense that it makes us lose control over how the String are actually constructed and aggregated together? Aside from that, what kind of interpolation are you looking for, and how the String.format utility does not meet your needs? Regards, D.J.

Re: Feature Request

2020-07-21 Thread Rob Spoor
If you need something right now, you can try https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/StringSubstitutor.html. On 21/07/2020 09:29, Jessica wrote: Hi, I would like to strongly request Java have the ability to do string interpolation. It is

Feature Request

2020-07-21 Thread Jessica
Hi, I would like to strongly request Java have the ability to do string interpolation. It is such a great convenience and allows for faster, more efficient coding that is easier to read. Is this feature on the roadmap in the foreseeable future? Thank you! Jessica Risavi