Guillaume Laforge | 12 Apr 10:33
Picon
Gravatar

Bugs in string literals

Hello,

In JSR-1, we've introduced a new notation for Strings, which is regex
friendly. It's possible to omit the backslashes usually needed for
escaping special characters.

But I can't manage to write a simple forward slash.

def s = /// 
def s = /\//

How do we do that?

Something else now: I can't type a simple println in the shell with
that notation:

println //
println /ifjeriofjrieojfero/

Though def s = /grzegnrzgz/  works.

Am I missing something?

--

-- 
Guillaume Laforge
http://glaforge.free.fr/weblog/?catid=2


Gmane