分页: 1 / 1

Python list comprehension太简练了

发表于 : 2023年 3月 26日 14:20
TheMatrix
图片

Re: Python list comprehension太简练了

发表于 : 2023年 3月 26日 14:26
wildthing
TheMatrix 写了: 2023年 3月 26日 14:20 图片
有什么好惊叹的。 没见过haskell的list comprehension嘛?

Re: Python list comprehension太简练了

发表于 : 2023年 3月 26日 14:32
TheMatrix
wildthing 写了: 2023年 3月 26日 14:26 有什么好惊叹的。 没见过haskell的list comprehension嘛?
Haskell list comprehension也就这样了吧?见过,但是忘了啥样了。

Re: Python list comprehension太简练了

发表于 : 2023年 3月 26日 14:35
wildthing
TheMatrix 写了: 2023年 3月 26日 14:32 Haskell list comprehension也就这样了吧?见过,但是忘了啥样了。
我的意思是python是抄袭haskell的。
简洁有代价。haskell的很多程序象天书。我天天写还能看懂,过几个月不用,自己写的都看不懂了。

Re: Python list comprehension太简练了

发表于 : 2023年 3月 26日 14:37
TheMatrix
wildthing 写了: 2023年 3月 26日 14:35 我的意思是python是抄袭haskell的。
简洁有代价。haskell的很多程序象天书。我天天写还能看懂,过几个月不用,自己写的都看不懂了。
嗯。我记得Haskell好像没有括号,省了括号的字符。

Re: Python list comprehension太简练了

发表于 : 2023年 3月 26日 14:40
mitbbsnew
wildthing 写了: 2023年 3月 26日 14:26 有什么好惊叹的。 没见过haskell的list comprehension嘛?
只见过Python的。太厉害了。

Re: Python list comprehension太简练了

发表于 : 2023年 3月 26日 14:43
wildthing
TheMatrix 写了: 2023年 3月 26日 14:37 嗯。我记得Haskell好像没有括号,省了括号的字符。
不是的。Point free notation
有兴趣的话看看 Haskell library.

外行不知道Functional programming 可以多么难懂
其实这些语言都是互相抄袭。没有几个有真正的创新