One way of doing things.
Posted: Sun Jul 04, 2010 9:45 am
Hi Chuck,
As you know the Zen of Python says "There should be one-- and preferably only one --obvious way to do it.", but is applied pragmatically and certainly not even always. I'm pretty maniacal for both consistency and simplicity and enforced by the compiler is (almost) always good in my book, and Cobra does loads already in this regard.
But a trivial example is that 0xabc, 0xABC, and 0aBc are all allowed in Cobra (& in Python) and I'd like to see only one allowed.*
The example is secondary, the focus of this post is the question: What is the Cobra philosophy on "one way of doing things"?
Nev
* I've known and know programmers who would even mix the casing in a single file and see nothing odd about it if I ranted at them - and equally dumb things.
As you know the Zen of Python says "There should be one-- and preferably only one --obvious way to do it.", but is applied pragmatically and certainly not even always. I'm pretty maniacal for both consistency and simplicity and enforced by the compiler is (almost) always good in my book, and Cobra does loads already in this regard.
But a trivial example is that 0xabc, 0xABC, and 0aBc are all allowed in Cobra (& in Python) and I'd like to see only one allowed.*
The example is secondary, the focus of this post is the question: What is the Cobra philosophy on "one way of doing things"?
Nev
* I've known and know programmers who would even mix the casing in a single file and see nothing odd about it if I ranted at them - and equally dumb things.