Re: [Python-ideas] parameter omit
"Aaron Brady"
Library functions have many parameters, and huge if statements are hard to read. My solution costs only a single built-in object, not even a keyword or syntax modification. Your solution takes a three-line function definition. Compare to mine:
def foo(arg1, argFoo=1.2325, argBree='hello'): ...
Specific and concise. Clearly better, by all measures I read.
Except that it has no support from anyone with any pull. Feel free to wait for it, and/or keep pestering people to offer their opinions. Note that not everyone has the desire for such (arguably unnecessary) consistency as you seem to. - Josiah
-----Original Message----- From: Josiah Carlson [mailto:jcarlson@uci.edu] Sent: Thursday, May 10, 2007 9:36 PM
"Aaron Brady"
wrote: Library functions have many parameters, and huge if statements are hard to read. My solution costs only a single built-in object, not even a keyword or syntax modification. Your solution takes a three-line function definition. Compare to mine:
def foo(arg1, argFoo=1.2325, argBree='hello'): ...
Specific and concise. Clearly better, by all measures I read.
Except that it has no support from anyone with any pull. Feel free to wait for it, and/or keep pestering people to offer their opinions.
Note that not everyone has the desire for such (arguably unnecessary) consistency as you seem to.
- Josiah
Copy Houston. Have to be someone to be right. It's a good idea and I'll wait if it suits to. I'll quote Guido in the future.
-----Original Message----- From: python-ideas-bounces@python.org [mailto:python-ideas- bounces@python.org] On Behalf Of Aaron Brady Sent: Thursday, May 10, 2007 9:35 PM To: 'Josiah Carlson'; python-ideas@python.org Subject: Re: [Python-ideas] parameter omit
-----Original Message----- From: Josiah Carlson [mailto:jcarlson@uci.edu] Sent: Thursday, May 10, 2007 9:36 PM
"Aaron Brady"
wrote: Library functions have many parameters, and huge if statements are hard to read. My solution costs only a single built-in object, not even a keyword or syntax modification. Your solution takes a three-line function definition. Compare to mine:
def foo(arg1, argFoo=1.2325, argBree='hello'): ...
Specific and concise. Clearly better, by all measures I read.
Except that it has no support from anyone with any pull. Feel free to wait for it, and/or keep pestering people to offer their opinions.
Note that not everyone has the desire for such (arguably unnecessary) consistency as you seem to.
- Josiah
Copy Houston. Have to be someone to be right. It's a good idea and I'll wait if it suits to. I'll quote Guido in the future.
To finish up, I, the newcomer, have a solution that encompasses more situations at very small cost. No compatibility issues either. What should I expect?
participants (2)
-
Aaron Brady
-
Josiah Carlson