Why can julia packages not be called Exam-ple.jl

question
package

#1

I just noticed that this fails:

Pkg.clone("https://github.com/floswald/Exam-ple.jl")

I found no reference to a naming restriction of julia packages. It is a bit odd that this restriction be in place, given that the “dash” convention is quite standard for github repositories. For example, if this were a julia package

it could never be cloned?


#2

Normally you use packages like this:

Pkg.clone("https://github.com/floswald/Exam-ple.jl")
using Exam-ple

I.e. you try to load a module named as a package, and this second line is not a valid Julia expression.


#3

I see! Makes sense.