Want to improve this question? 想改善这个问题吗? Update the question so it focuses on one problem only by editing this post . 更新问题,使其仅经过编辑此帖子来关注一个问题。 ide
Closed 3 years ago . 3年前关闭。 post
I'm trying to figure out Python lambdas. 我正在尝试找出Python lambda。 Is lambda one of those "interesting" language items that in real life should be forgotten? lambda是在现实生活中应该被遗忘的那些“有趣”语言项目之一吗? this
I'm sure there are some edge cases where it might be needed, but given the obscurity of it, the potential of it being redefined in future releases (my assumption based on the various definitions of it) and the reduced coding clarity - should it be avoided? 我敢确定,在某些状况下可能须要使用它,可是鉴于它的晦涩之处,它可能会在未来的版本中从新定义(我基于其各类定义的假设),而且下降了编码的清晰度-是否应该被避免? 编码
This reminds me of overflowing (buffer overflow) of C types - pointing to the top variable and overloading to set the other field values. 这让我想起了C类型的溢出(缓冲区溢出)-指向顶部变量,并经过重载来设置其余字段值。 It feels like sort of a techie showmanship but maintenance coder nightmare. 感受像是技术娴熟的演艺风格,但倒是维护编码员的噩梦。 spa