Valid characters in a module name

Ess Kay s.2016.kay at
Sun Jan 1 01:43:28 UTC 2017

"JPMS: Modules in the Java Language and JVM" at says
that a module name can contain almost any character.  If this is indeed the
case then it is going to make the development of scripting languages that
specify module names quite complicated.

Would it be too big a compromise to specify that a module name must not
1) double quotes,
2) single quotes,
3) spaces,
4) forward slashes or
5) asterixes?
Put another way, what advantage is there in allowing a module name to start
with or contain a double quote or space etc?

Taking a step backwards, would it be too much of a compromise to specify
that module names should only contain characters that are valid in a Java
class name perhaps with the exception of a few special characters?

More information about the jigsaw-dev mailing list