Re:John Carmack on Inlined Code
by scbrg on Wednesday October 09, 2024 @03:35AM
(#41785423)
Not sure I believe the benefit of this approach outweighs the added difficulty wrt testing, but I certainly agree that Python needs a yikes keyword :-)
[ Parent
| on HN ]
Re:John Carmack on Inlined Code
by nuancebydefault on Wednesday October 09, 2024 @05:12AM
(#41785906)
What is the benefit of such a yikes? Or do you consider it a yikes language as a whole?
Personally I like that functions can be inside functions, as a trade off between inlining and functional seperation in C++.
The scope reduction makes it easier to track bugs while it has the benefits of separation of concern.
> What is the benefit of such a yikes? Or do you consider it a yikes language as a whole?
None, it was just a simple joke based on the typo in the post I replied to. I like Python, and have in fact been happily using it as my main language for over 20 years.