<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Virtuous Code - Latest Comments in Array-ifying Values</title><link>http://virtuouscode.disqus.com/</link><description></description><atom:link href="https://virtuouscode.disqus.com/array_ifying_values/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 21 Nov 2009 04:58:08 -0000</lastBuildDate><item><title>Re: Array-ifying Values</title><link>http://devblog.avdi.org/2009/10/21/array-ifying-values/#comment-23690705</link><description>&lt;p&gt;One thing I don't like about the behavior with Hash transformed to Array is that you can't use it to "normalize" argument to an array (for example to get an API which allows passing both array of hashes and singe hash) so you have to resort to something like `[arg].flatten`.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Evgeniy Dolzhenko</dc:creator><pubDate>Sat, 21 Nov 2009 04:58:08 -0000</pubDate></item><item><title>Re: Array-ifying Values</title><link>http://devblog.avdi.org/2009/10/21/array-ifying-values/#comment-23473409</link><description>&lt;p&gt;They differ in the nil case:&lt;/p&gt;&lt;p&gt;    &amp;gt;&amp;gt; RUBY_DESCRIPTION # =&amp;gt; "ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-linux]"&lt;br&gt;    &amp;gt;&amp;gt; [*nil]           # =&amp;gt; [nil]&lt;br&gt;    &amp;gt;&amp;gt; Array(nil)       # =&amp;gt; []&lt;br&gt;    &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">phiggy</dc:creator><pubDate>Wed, 18 Nov 2009 14:08:09 -0000</pubDate></item><item><title>Re: Array-ifying Values</title><link>http://devblog.avdi.org/2009/10/21/array-ifying-values/#comment-21539226</link><description>&lt;p&gt;I updated a blog post I did on the subject with links to this post, thanks!&lt;/p&gt;&lt;p&gt;&lt;a href="http://blog.teambox.com/mrproper-cleaner-blocks-in-ruby" rel="nofollow noopener" target="_blank" title="http://blog.teambox.com/mrproper-cleaner-blocks-in-ruby"&gt;http://blog.teambox.com/mrp...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pablo Villalba</dc:creator><pubDate>Sun, 01 Nov 2009 12:53:46 -0000</pubDate></item><item><title>Re: Array-ifying Values</title><link>http://devblog.avdi.org/2009/10/21/array-ifying-values/#comment-20765204</link><description>&lt;p&gt;Indeed. I personally feel that Array() is more intent-revealing, but [*] is certainly an alternative.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Avdi Grimm</dc:creator><pubDate>Thu, 22 Oct 2009 00:48:54 -0000</pubDate></item><item><title>Re: Array-ifying Values</title><link>http://devblog.avdi.org/2009/10/21/array-ifying-values/#comment-20763979</link><description>&lt;p&gt;You can use [*items] as well to do the same thing as Array(). I don't know if there are any reasons to use one over the other, but it's an option.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bradly Feeley</dc:creator><pubDate>Thu, 22 Oct 2009 00:05:20 -0000</pubDate></item></channel></rss>