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