Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
10:41am] isaacs: hey, i have a question which might seem a bit odd, regarding module naming syntax. [10:41am] isaacs: all the commonjs implementations map the module name to a file at some point, right? [10:42am] isaacs: what was the reasoning for not just using a filename or (relative) path? [10:44am] ashb: dunno - the require() thing was decided before i got invovled [10:44am] ashb: (i.e. Jan this year) [10:44am] isaacs: yeah, it was before i got into it, too [10:44am] isaacs: having worked with nodejs for a while when it just took a filename or url to register a module, it really struck me how much more sensible it was. [10:45am] _ry: as far as i can search this filename extension issue was only ever brought up by me :)
This paste will be private.
From the Design Piracy series on my blog: