[erlang-questions] Why we need a -module() attribute?
Tue Feb 23 19:12:26 CET 2016
For a while now, I've wished I could have more control over where module
source files were on the filesystem. For example, instead of
I'd really like to be able to put that in src/myapp/part/subpart.erl -
maybe this is a misapprehension turned superstition, but I was under the
impression that I'd need to have a whole separate build step to copy the
latter into the former before handing it to erlc. Is that not the case? I'm
pretty ambivalent about the extra step and the extra set of files vs. being
able to name files as I'd like to, and if there's a way to get that to
happen in one step I'd love to learn about it.
On Mon, Feb 22, 2016 at 3:12 PM Richard A. O'Keefe <ok@REDACTED>
> The little AWK program is indeed neat, but it goes in the broken direction
> (from file name to module name) not the working direction (from module
> name to file name). This is the whole problem: given a file name,
> we cannot cross-platform reliably reconstruct a module name.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions