TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Functional Programming in Python

18 点作者 mk超过 17 年前

2 条评论

damon超过 17 年前
According to Guido, he wants to drop functional programming constructs in Python. <p><a href="http://www.artima.com/weblogs/viewpost.jsp?thread=98196" rel="nofollow">http://www.artima.com/weblogs/viewpost.jsp?thread=98196</a><p>What's interesting is the reasons he gives:<p>"Why drop lambda? Most Python users are unfamiliar with Lisp or Scheme, so the name is confusing; also, there is a widespread misunderstanding that lambda can do things that a nested function can't -- I still recall Laura Creighton's Aha!-erlebnis after I showed her there was no difference! Even with a better name, I think having the two choices side-by-side just requires programmers to think about making a choice that's irrelevant for their program; not having the choice streamlines the thought process."<p> Basically he wants to dumb down the language to make it more appealing to the mainstream programmer crowd. He wants another java. In the end, I think that mentality is a death sentence for the language.
评论 #58128 未加载
评论 #58314 未加载
评论 #58507 未加载
评论 #58130 未加载
joshwa超过 17 年前
Looks like a good read... sadly, it was useless since half the code blocks lost their formatting and linebreaks, rendering it unreadable. <p>also: article is from 2001, talks about <i>new</i> features in Python 2!