One of my pet peeves about programming languages is that they don't go far
enough in mandating a particular coding style. Projects are forced to make
up their own coding style rules, and their own tools and processes for
enforcing those rules, which works OK until you try to move code from one
project to another. In my experience those costs vastly outweigh the value
of permitting personal coding styles as a means of self-expression.

I would be thrilled if the Rust compiler enforced as many machine-checkable
style rules as possible --- rules like "no tabs", standard indentation,
placing of spaces and modifier characters, etc. I think it would really
help when we come to use it in large projects.

(I wrote more about this a while ago:
http://robert.ocallahan.org/2010/07/coding-style-as-failure-of-language_21.html
)

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to