<?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: Ruby is dynamically AND strongly typed</title>
	<atom:link href="http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/</link>
	<description>Because programming should be fun</description>
	<lastBuildDate>Wed, 04 Jan 2012 05:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: RubySource: .NET to Ruby: The Ruby Environment - Rubin Shrestha &#124; www.rubin.com.np</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-1444</link>
		<dc:creator>RubySource: .NET to Ruby: The Ruby Environment - Rubin Shrestha &#124; www.rubin.com.np</dc:creator>
		<pubDate>Tue, 09 Aug 2011 01:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-1444</guid>
		<description>[...] what Ruby is. Ruby is a dynamic, strongly typed, and interpreted language. C# is a static, strongly typed language. Ruby was created in the mid-1990s by Yukihiro Matsumoto, Matz for short. First and foremost Ruby [...]</description>
		<content:encoded><![CDATA[<p>[...] what Ruby is. Ruby is a dynamic, strongly typed, and interpreted language. C# is a static, strongly typed language. Ruby was created in the mid-1990s by Yukihiro Matsumoto, Matz for short. First and foremost Ruby [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: .NET to Ruby: The Ruby Environment » RubySource</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-1443</link>
		<dc:creator>.NET to Ruby: The Ruby Environment » RubySource</dc:creator>
		<pubDate>Mon, 08 Aug 2011 08:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-1443</guid>
		<description>[...] what Ruby is. Ruby is a dynamic, strongly typed, and interpreted language. C# is a static, strongly typed language. Ruby was created in the mid-1990s by Yukihiro Matsumoto, Matz for short. First and foremost Ruby [...]</description>
		<content:encoded><![CDATA[<p>[...] what Ruby is. Ruby is a dynamic, strongly typed, and interpreted language. C# is a static, strongly typed language. Ruby was created in the mid-1990s by Yukihiro Matsumoto, Matz for short. First and foremost Ruby [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Vinícius</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-1032</link>
		<dc:creator>Samuel Vinícius</dc:creator>
		<pubDate>Thu, 16 Sep 2010 16:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-1032</guid>
		<description>Very nice!

ex.:

x = 100
(1..4).each{ x = x * 100 ; puts “#{ x.class} #{x}” }

result:

Fixnum 10000
Fixnum 1000000
Fixnum 100000000
Bignum 10000000000</description>
		<content:encoded><![CDATA[<p>Very nice!</p>
<p>ex.:</p>
<p>x = 100<br />
(1..4).each{ x = x * 100 ; puts “#{ x.class} #{x}” }</p>
<p>result:</p>
<p>Fixnum 10000<br />
Fixnum 1000000<br />
Fixnum 100000000<br />
Bignum 10000000000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Vinícius</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-1031</link>
		<dc:creator>Samuel Vinícius</dc:creator>
		<pubDate>Thu, 16 Sep 2010 16:21:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-1031</guid>
		<description>Very nice!

ex.:

x = 100
(1..4).each{ x = x * 100 ;  puts &quot;#{ x.class} #{x}&quot;  }

result:

Fixnum 10000
Fixnum 1000000
Fixnum 100000000
Bignum 10000000000</description>
		<content:encoded><![CDATA[<p>Very nice!</p>
<p>ex.:</p>
<p>x = 100<br />
(1..4).each{ x = x * 100 ;  puts &#8220;#{ x.class} #{x}&#8221;  }</p>
<p>result:</p>
<p>Fixnum 10000<br />
Fixnum 1000000<br />
Fixnum 100000000<br />
Bignum 10000000000</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dynamic, static, weak and strong in languages &#171; Altug Sahin&#39;s Blog</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-1022</link>
		<dc:creator>Dynamic, static, weak and strong in languages &#171; Altug Sahin&#39;s Blog</dc:creator>
		<pubDate>Thu, 15 Jul 2010 19:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-1022</guid>
		<description>[...] came across this interesting post. Here is the [...]</description>
		<content:encoded><![CDATA[<p>[...] came across this interesting post. Here is the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-864</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 15 Sep 2009 04:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-864</guid>
		<description>Dilruk, 

in your example dynamic/static doesn&#039;t apply. It&#039;s the Strong/Weak aspect of typing that is affected. In ruby, your example would throw out an exception. In a weakly typed language, it would try to mix the two types... In most cases I guess it would give something like &quot;This is a number7&quot;

Thanks for your comments everyone (I&#039;m just 2 years late) !</description>
		<content:encoded><![CDATA[<p>Dilruk, </p>
<p>in your example dynamic/static doesn&#8217;t apply. It&#8217;s the Strong/Weak aspect of typing that is affected. In ruby, your example would throw out an exception. In a weakly typed language, it would try to mix the two types&#8230; In most cases I guess it would give something like &#8220;This is a number7&#8243;</p>
<p>Thanks for your comments everyone (I&#8217;m just 2 years late) !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dilruk</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-826</link>
		<dc:creator>Dilruk</dc:creator>
		<pubDate>Tue, 24 Feb 2009 21:45:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-826</guid>
		<description>A = &quot;This is a number&quot;
What would be the result for A = A + 7 in a Dynamically typed language?</description>
		<content:encoded><![CDATA[<p>A = &#8220;This is a number&#8221;<br />
What would be the result for A = A + 7 in a Dynamically typed language?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: txt &#187; Dynamic/Static/Strong/Weak Types</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-308</link>
		<dc:creator>txt &#187; Dynamic/Static/Strong/Weak Types</dc:creator>
		<pubDate>Wed, 25 Jul 2007 18:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-308</guid>
		<description>[...] Original Article [...]</description>
		<content:encoded><![CDATA[<p>[...] Original Article [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shadowfiend</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-305</link>
		<dc:creator>Shadowfiend</dc:creator>
		<pubDate>Sat, 14 Jul 2007 23:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-305</guid>
		<description>But that&#039;s often what&#039;s meant with weak. Weak means that there is a weak distinction between the types (more or less). In C, that&#039;s particularly evident because you get virtually no distinction between pointer types -- they&#039;re all integers at the end of the day, and you can do whatever you want with them. Casting lets you achieve just about anything, with no checking until you get a segfault in your running program :)</description>
		<content:encoded><![CDATA[<p>But that&#8217;s often what&#8217;s meant with weak. Weak means that there is a weak distinction between the types (more or less). In C, that&#8217;s particularly evident because you get virtually no distinction between pointer types &#8212; they&#8217;re all integers at the end of the day, and you can do whatever you want with them. Casting lets you achieve just about anything, with no checking until you get a segfault in your running program :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Giuca</title>
		<link>http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/comment-page-1/#comment-304</link>
		<dc:creator>Matt Giuca</dc:creator>
		<pubDate>Fri, 13 Jul 2007 16:35:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/ruby-is-dynamically-and-strongly-typed/#comment-304</guid>
		<description>So from some of these comments (the guy who overloaded Ruby + and the guy who said C is weakly typed) - it seems like we can classify strong/weak as being a property of the OPERATORS themselves, not the type system! (For the most part).

I wouldn&#039;t classify C as having a particularly weak type system. It lets you implicitly cast numbers around (eg. (int)3 + (float)4.7 =&gt; (float)7.7), but that&#039;s about it. For instance, C won&#039;t let you go &quot;3&quot; + 4 and give you 7 - which a truly &quot;weak&quot; type system will give you.

Oh no, C is far worse - it isn&#039;t _weak_, it&#039;s _unsafe_! The 3rd classification after dynamic/static and weak/strong is safe/unsafe. In C if you do &quot;3&quot; + 4, you get ... a pointer 3 bytes past the end of the string! This is usually unacceptable in modern languages so it doesn&#039;t happen in most. But just a point, I wouldn&#039;t consider that &quot;weakness&quot;.

Sorry for getting off-topic. Oh, a very good article though!</description>
		<content:encoded><![CDATA[<p>So from some of these comments (the guy who overloaded Ruby + and the guy who said C is weakly typed) &#8211; it seems like we can classify strong/weak as being a property of the OPERATORS themselves, not the type system! (For the most part).</p>
<p>I wouldn&#8217;t classify C as having a particularly weak type system. It lets you implicitly cast numbers around (eg. (int)3 + (float)4.7 =&gt; (float)7.7), but that&#8217;s about it. For instance, C won&#8217;t let you go &#8220;3&#8243; + 4 and give you 7 &#8211; which a truly &#8220;weak&#8221; type system will give you.</p>
<p>Oh no, C is far worse &#8211; it isn&#8217;t _weak_, it&#8217;s _unsafe_! The 3rd classification after dynamic/static and weak/strong is safe/unsafe. In C if you do &#8220;3&#8243; + 4, you get &#8230; a pointer 3 bytes past the end of the string! This is usually unacceptable in modern languages so it doesn&#8217;t happen in most. But just a point, I wouldn&#8217;t consider that &#8220;weakness&#8221;.</p>
<p>Sorry for getting off-topic. Oh, a very good article though!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

