Re:What Is the Switch-Case Equivalent in Python?
by musingsole on Saturday April 03, 2021 @05:53PM
(#26685073)
Language features of this type should be nice and not game changing. It's how spoken word languages evolve. If every change was game-changing, it'd only be a few mutations until a dialect became a language in its own right. In reality, you get countless dialects frequently with features that eventually die off and new languages rarely and only in the aggregate.
[ Parent
| on HN ]
Re:What Is the Switch-Case Equivalent in Python?
by GeorgeTirebiter on Saturday April 03, 2021 @06:10PM
(#26685185)
Seems to me the 'sweet spot' for a language is a careful balance of continuing to evolve - slowly, carefully - and to not become so large as to 'not fit into one head'. Python3.9 is not yet at the 'too big for one head'; but 3.xx could be. Perhaps old-style features need to be removed, and only available via some sort of "from __past__ import old-feature-set"
Re:What Is the Switch-Case Equivalent in Python?
by musingsole on Saturday April 03, 2021 @06:30PM
(#26685321)
It's hard for me to separate a language from what it is used to accomplish, and from that perspective, Python has been far too large to fit in one head for a good long time. Perhaps that is why I don't find any compulsion for language purity.
Re:What Is the Switch-Case Equivalent in Python?
by neolog on Sunday April 04, 2021 @02:17AM
(#26687319)
> too large to fit in one head
is it? I don't think the core language is that big. The libraries are big of course.
Re:What Is the Switch-Case Equivalent in Python?
by pansa2 on Sunday April 04, 2021 @03:31AM
(#26687580)
An example of core language complexity: if asked, could you explain what all of these do?
Re:What Is the Switch-Case Equivalent in Python?
by neolog on Sunday April 04, 2021 @05:44AM
(#26688092)
The only one I didn't know was text_signature.