Any interest in raw strings? (original) (raw)
Vilya Harvey vilya.harvey at gmail.com
Tue Mar 24 16:58:29 PDT 2009
- Previous message: Any interest in raw strings?
- Next message: Any interest in raw strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ah, I had a feeling I might have missed something. It looks like you've already covered everything I wanted to write up and more! I think multiline strings would be a useful addition too; it seems a shame that it won't be included in the Coin changes.
Cheers, Vil.
2009/3/24 <rssh at gradsoft.com.ua>
> Hi all, > > I don't think I've seen a proposal for raw strings - string literals which > ignore escape sequences - yet. Would there be enough interest to write > this > up as a proposal? > > The idea is stolen shamelessly from Python, where you can write a raw > string > as r"[\n\r\t]" and it's equivalent to the normal string "[\n\r\t]" > (i.e. > you don't need to double the backslash in a raw string, it's just treated > like any other character). This is most useful when writing regular > expressions; in fact, it may only be useful then. But for that one case > it > is extremely handy. > > Any opinions? >
It was part of my enhanched string proposal http://redmine.gradsoft.ua/wiki/java7stringliterals If creating new proposal only for unescaped strings (without multiline) can help (ask Darcy) -- than submit one. It woud be better than nothing. > Vil. > >
- Previous message: Any interest in raw strings?
- Next message: Any interest in raw strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]