There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

morrowind ,
@morrowind@lemmy.ml avatar

<span style="font-weight:bold;color:#a71d5d;">for</span><span style="color:#323232;"> item </span><span style="font-weight:bold;color:#a71d5d;">in</span><span style="color:#323232;"> array </span><span style="font-weight:bold;color:#a71d5d;">do
</span><span style="color:#323232;">  </span><span style="color:#62a35c;">puts</span><span style="color:#323232;"> item[</span><span style="color:#0086b3;">:name</span><span style="color:#323232;">]
</span><span style="font-weight:bold;color:#a71d5d;">end
</span>

What’s with the weird syntax, isn’t idiomatic ruby


<span style="color:#323232;">array.each </span><span style="font-weight:bold;color:#a71d5d;">do </span><span style="color:#323232;">|item|
</span><span style="color:#323232;">  </span><span style="color:#62a35c;">puts</span><span style="color:#323232;"> item[</span><span style="color:#0086b3;">:name</span><span style="color:#323232;">]
</span><span style="font-weight:bold;color:#a71d5d;">end
</span>

(or the shorthand version)?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines