由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - type class是fp吗?
相关主题
[合集] type traits is magicQ: 2 submit buttons in 1 page (转载)
关于C++中一个Class的大小 (转载)Node.js 有用过的么 什么评价
问一下这个cast在java里是怎么work的Why C++11 introduce "decltype" and "auto"?
谁能给出关于class和type的区别的英文解释珍惜生命,远离 R 和 Go
c++ covariant type(受不了C++啦!!!)python 3.5 typing hint普及之後 python真要統治世界了。
一个partial specialization的问题Python 如何自动import multiple files
Traited Python object attributes -for java peopleg++ problem!!!!
谁能通俗易懂地讲讲trait和monad的概念?JAVA generic programming 是怎么实现的?
相关话题的讨论汇总
话题: type话题: class话题: java话题: fp话题: method
进入Programming版参与讨论
1 (共1页)
l**********n
发帖数: 8443
1
Java有type class吗?
a*******a
发帖数: 1240
2
有。叫做 Class.class
看看JDK的doc就知道了
p*****2
发帖数: 21240
3
java就是interface吧

【在 l**********n 的大作中提到】
: Java有type class吗?
l******t
发帖数: 55733
4
interface还是差太多。trait可以了
p*****2
发帖数: 21240
5
加了default method了

【在 l******t 的大作中提到】
: interface还是差太多。trait可以了
l******t
发帖数: 55733
6

really,好久没看java了

【在 p*****2 的大作中提到】
: 加了default method了
b***e
发帖数: 1419
7
It's much stronger than that. Type class will determine what function to
call at compile time, there is no need if dynamic dispatching and thus no
need of method table lookup.

【在 l******t 的大作中提到】
: interface还是差太多。trait可以了
d******e
发帖数: 2265
8
java应该没有type class.
以前java都是class type不分的。后来有了generic才有了type个概念。

【在 l**********n 的大作中提到】
: Java有type class吗?
1 (共1页)
进入Programming版参与讨论
相关主题
JAVA generic programming 是怎么实现的?c++ covariant type(受不了C++啦!!!)
来来来,我也问个题 (转载)一个partial specialization的问题
C++中怎么传递std::hex这样的参数啊Traited Python object attributes -for java people
子类的assignment operator 怎么访问父类的private member谁能通俗易懂地讲讲trait和monad的概念?
[合集] type traits is magicQ: 2 submit buttons in 1 page (转载)
关于C++中一个Class的大小 (转载)Node.js 有用过的么 什么评价
问一下这个cast在java里是怎么work的Why C++11 introduce "decltype" and "auto"?
谁能给出关于class和type的区别的英文解释珍惜生命,远离 R 和 Go
相关话题的讨论汇总
话题: type话题: class话题: java话题: fp话题: method