kmizuさんとpaulpさんのやりとり

paulpさんのDOTに関する意見が気になったので
2
Paul Phillips 💙 @contrarivariant

@kmizu that is a logical thing to think, but nope.

2014-02-10 17:25:48
Paul Phillips 💙 @contrarivariant

@kmizu martin: “Same-named inner classes which are in no relationship with each other are explicitly allowed in both Java and Scala.”

2014-02-10 17:25:59
kmizu @kmizu

@extempore2 Hi. It seems that you example doesn't indicate unsoundness of Scala's type system but scalac's bug for me.

2014-02-10 17:26:03
kmizu @kmizu

@extempore2 .@kmizu Of course. Scala's type system doesn't have formal definition. However, many practical languages doesn't have it, too.

2014-02-10 17:28:04
kmizu @kmizu

@extempore2 Thanks. I'l see your pointer at first.

2014-02-10 17:28:49
kmizu @kmizu

@extempore2 What do you mean? I see think the problem is whether Scala type system is unsound or not.

2014-02-10 18:17:16
Paul Phillips 💙 @contrarivariant

@kmizu I don’t think there’s any question as to whether it is unsound. It is.

2014-02-10 18:17:45
kmizu @kmizu

@extempore2 .@kmizu And it is not determined completely unless the type system is not well-defined.

2014-02-10 18:20:09
Paul Phillips 💙 @contrarivariant

@kmizu I am not sure what “it” refers to in “it is not determined completely.”

2014-02-10 18:20:59
kmizu @kmizu

@extempore2 Yes, of course. But the unsoundness is not trivial for me, at least.

2014-02-10 18:23:31
Paul Phillips 💙 @contrarivariant

@kmizu I am not sure how one should judge unsoundness to be trivial.

2014-02-10 18:24:15
kmizu @kmizu

@extempore2 I'm sorry for not good at English. "it" refers "whether Scala type system is unsound or not".

2014-02-10 18:24:45
Paul Phillips 💙 @contrarivariant

@kmizu Here is another one, which includes a huge number of classes. https://t.co/pkxn11Yen8

2014-02-10 18:24:52
Paul Phillips 💙 @contrarivariant

@kmizu As specified it is unquestionably unsound. This is openly admitted by martin in SI-7255. But there is lots more.

2014-02-10 18:26:43
kmizu @kmizu

@extempore2 OK. I understood what you want to say at last. Certainly, the problem https://t.co/WSly8iSFIZ indicates unsoundenss. Thanks.

2014-02-10 18:30:15
kmizu @kmizu

@extempore2 I have another question. How do you think about DOT? According to Martin, The DOT (Dependend Object Types) fixes the problem.

2014-02-10 18:35:21
kmizu @kmizu

@extempore2 .@kmizu I'd already read the Namin's paper about DOT, of course.

2014-02-10 18:37:11
Paul Phillips 💙 @contrarivariant

@kmizu The soundness issues in scala are not a result of the theory but of indifference to correctness. DOT can’t fix that.

2014-02-10 18:37:37
kmizu @kmizu

@extempore2 Yes, DOT can'T fix scalac's implementation. However, the different type theory Scala is based on can fix future's implementation

2014-02-10 18:40:28
Paul Phillips 💙 @contrarivariant

@kmizu No theory yet devised can outrun indifference to correctness.

2014-02-10 18:41:49