Nathaniel Smith wrote:
I also wonder whether output mangling things should be default-on or
default-off. There is a part of me that feels like line-ending
conversion should be _enabled_ by an attr, rather than _disabled_?
FWIW, I'm a Windows programmer, so I actually use eol
convention, so if I might chime in with my opinion...
I agree with Nathaniel: eol conversion should be disabled by
default, and should be enabled with a setting.
Principle-of-least-surprise there. Optimally, there should be a way
for the system to guess at the "convert eols" flag when you run "mtn
add", like f'rinstance a Lua hook that examines the filenames of added
files and can set the attribute, with a default implementation that
compares the filename to a regular _expression_ (or even just a list of
extensions) stored as a database variable.
larry
|