Re: [Python-ideas] Internal function idea

On Thu, Dec 28, 2017 at 5:21 AM, William Rose <william27.07.02@gmail.com> wrote:
I agree with the point that it should allow builtin but the main purpose of it is to not allow global variables
But functions are also accessed using global names. What is your answer to the potential problem of programmers being reluctant to factor out code into new functions?

On Fri, Dec 29, 2017 at 1:31 PM, Franklin? Lee <leewangzhong+python@gmail.com> wrote:
Code review, training, mentorship. If you try to make the language too restrictive, all you end up doing is forcing people to creatively get around its limitations. Make the language expressive, and then teach people how to use it well. Can you show some examples of code that would be improved by this "internal function" concept? ChrisA

On Fri, Dec 29, 2017 at 1:31 PM, Franklin? Lee <leewangzhong+python@gmail.com> wrote:
Code review, training, mentorship. If you try to make the language too restrictive, all you end up doing is forcing people to creatively get around its limitations. Make the language expressive, and then teach people how to use it well. Can you show some examples of code that would be improved by this "internal function" concept? ChrisA
participants (2)
-
Chris Angelico
-
Franklin? Lee