<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Java 和 .Net 在异常处理机制上的区别</title>
	<atom:link href="http://www.tangrui.net/2007/01/09/difference-between-java-and-dotnet-on-exception-handling/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tangrui.net/2007/01/09/difference-between-java-and-dotnet-on-exception-handling</link>
	<description>博客通天下 淡墨书豪辞</description>
	<lastBuildDate>Tue, 28 Jul 2009 05:13:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: 夜游长空（Sunyu &#38; Zhangdi's BLOG）</title>
		<link>http://www.tangrui.net/2007/01/09/difference-between-java-and-dotnet-on-exception-handling/comment-page-1#comment-53</link>
		<dc:creator>夜游长空（Sunyu &#38; Zhangdi's BLOG）</dc:creator>
		<pubDate>Mon, 29 Jan 2007 16:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.tangrui.net/2007/01/09/difference-between-java-and-dotnet-on-exception-handling/#comment-53</guid>
		<description>&lt;strong&gt;也议Java与C#的异常处理实现...&lt;/strong&gt;


刚看到tangrui同学的一篇文章，说Java与C#在类型处理上的区别。以前我们还是同事的时候，就一起讨论过这个问题，当时，我是极力的不满意C#的处理方式。这次看到这篇文章，有些给C#正名的...</description>
		<content:encoded><![CDATA[<p><strong>也议Java与C#的异常处理实现&#8230;</strong></p>
<p>刚看到tangrui同学的一篇文章，说Java与C#在类型处理上的区别。以前我们还是同事的时候，就一起讨论过这个问题，当时，我是极力的不满意C#的处理方式。这次看到这篇文章，有些给C#正名的&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zhangdi</title>
		<link>http://www.tangrui.net/2007/01/09/difference-between-java-and-dotnet-on-exception-handling/comment-page-1#comment-52</link>
		<dc:creator>zhangdi</dc:creator>
		<pubDate>Mon, 29 Jan 2007 15:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tangrui.net/2007/01/09/difference-between-java-and-dotnet-on-exception-handling/#comment-52</guid>
		<description>我并不认为C#（.NET）这样处理Exception是好的。我觉得这与strong-type的概念相冲突。几个问题：
1. 在设计一个接口的时候，是不是需要同时告诉用户，这个接口有可能抛出什么类型的Exception?
2. 如果需要，那么这个Exception类型是否应该成为一个接口声明的一部分？
3. 一个已知的有可能发生的exception被操作系统捕获是否可以说是用户在处理这个接口的声明的时候，出现了疏忽呢？
4. strong-type的目标是在编译器发现尽可能多的关于类型的错误，如果我们把接口的定义看作类型的一部分，那么是否可以说，这个有可能将checked exception暴露给操作系统的编译器在strong-type上有缺陷呢？</description>
		<content:encoded><![CDATA[<p>我并不认为C#（.NET）这样处理Exception是好的。我觉得这与strong-type的概念相冲突。几个问题：<br />
1. 在设计一个接口的时候，是不是需要同时告诉用户，这个接口有可能抛出什么类型的Exception?<br />
2. 如果需要，那么这个Exception类型是否应该成为一个接口声明的一部分？<br />
3. 一个已知的有可能发生的exception被操作系统捕获是否可以说是用户在处理这个接口的声明的时候，出现了疏忽呢？<br />
4. strong-type的目标是在编译器发现尽可能多的关于类型的错误，如果我们把接口的定义看作类型的一部分，那么是否可以说，这个有可能将checked exception暴露给操作系统的编译器在strong-type上有缺陷呢？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
