p*****2 发帖数: 21240 | |
l**********n 发帖数: 8443 | 2 go is not like java or JavaScript. it is between.
【在 p*****2 的大作中提到】 : 一直没想太明白 : 我觉得不是
|
l**********n 发帖数: 8443 | 3 Interface values are represented as a two-word pair giving a pointer to
information about the type stored in the interface and a pointer to the
associated data. |
l**********n 发帖数: 8443 | 4 The assignment var s Stringer = b makes a copy of b. Not making s pointing
to b. |
p*****2 发帖数: 21240 | 5 我没谈go
【在 l**********n 的大作中提到】 : go is not like java or JavaScript. it is between.
|
l**********n 发帖数: 8443 | 6 you have to ask first 'Is method OO feature? ', since interface is but a
method list |
p*****2 发帖数: 21240 | 7 interface could be function list.
【在 l**********n 的大作中提到】 : you have to ask first 'Is method OO feature? ', since interface is but a : method list
|
l**********n 发帖数: 8443 | 8 what is the difference between method and function?
【在 p*****2 的大作中提到】 : interface could be function list.
|
p*****2 发帖数: 21240 | 9 method is bound to object. function isn't.
【在 l**********n 的大作中提到】 : what is the difference between method and function?
|
o**2 发帖数: 168 | 10 我认为interface和paradigm是互相独立的东西,可以互相利用,但没有从属关系。 |
|
|
b*******s 发帖数: 5216 | 11 It is. However abstract class is more OO
【在 p*****2 的大作中提到】 : 一直没想太明白 : 我觉得不是
|
a*****e 发帖数: 1700 | 12 可以参考一下 SML 的 signature, structure, 和 functor.
【在 p*****2 的大作中提到】 : 一直没想太明白 : 我觉得不是
|
p*****2 发帖数: 21240 | 13
我觉得也是。
【在 o**2 的大作中提到】 : 我认为interface和paradigm是互相独立的东西,可以互相利用,但没有从属关系。
|
p*****2 发帖数: 21240 | 14
how about type class in haskell?
【在 a*****e 的大作中提到】 : 可以参考一下 SML 的 signature, structure, 和 functor.
|
a*****e 发帖数: 1700 | 15 你要是有兴趣,可以看看这个视频 https://www.youtube.com/watch?v=hIZxTQP1ifo&
feature=youtu.be
type class 和其它的都不太一样,非常 subtle 的设计选择,但影响深远
【在 p*****2 的大作中提到】 : : how about type class in haskell?
|
p*****2 发帖数: 21240 | 16
好长。大牛能不能给个summary?
【在 a*****e 的大作中提到】 : 你要是有兴趣,可以看看这个视频 https://www.youtube.com/watch?v=hIZxTQP1ifo& : feature=youtu.be : type class 和其它的都不太一样,非常 subtle 的设计选择,但影响深远
|
z****e 发帖数: 54598 | 17 go像c
infra应该多考虑一下go
而app估计没戏
app level的话,基本上都非常declarative了
java的很多feature几乎都是declarative的
比如annotation
annotation实际上是markup language
比脚本,fp什么先进,真正的declarative
【在 l**********n 的大作中提到】 : go is not like java or JavaScript. it is between.
|