﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Boo trick: Even Nicer Hash Literals</title><description>Goodwill,
  
The issue is with the language support, mainly.
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment9</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment9</guid><pubDate>Fri, 20 Jul 2007 16:10:32 GMT</pubDate></item><item><title>goodwill commented on Boo trick: Even Nicer Hash Literals</title><description>You lurked me a lot on this :( too bad its not real yet.
  
For the question you ask, I think you might follow what ruby has done. 
  
:foo =&gt;:fubar, cleanest and distinguish  between variable and string literal
  
(You dont even need =&gt;, make it = is good enough) 
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment8</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment8</guid><pubDate>Fri, 20 Jul 2007 16:03:31 GMT</pubDate></item><item><title>Ayende Rahien commented on Boo trick: Even Nicer Hash Literals</title><description>@Cedric,
  
No, should I?
  
There is a chance of collision if you have:
  
  
foo = "bar"
  
  
hash = { foo: "fubar" }
  
  
What should the value be?
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment7</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment7</guid><pubDate>Mon, 11 Jun 2007 11:04:22 GMT</pubDate></item><item><title>goodwill commented on Boo trick: Even Nicer Hash Literals</title><description>Darn cool.... I wonder NVelocity can get something similar.... currently its:
  
"%{name='value'}"
  
I always come across missing literal errors :( could be my poor typing...
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment6</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment6</guid><pubDate>Mon, 11 Jun 2007 10:24:29 GMT</pubDate></item><item><title>Cedric Vivier commented on Boo trick: Even Nicer Hash Literals</title><description>Niiice.
  
  
Have you opened a JIRA wish for inclusion of this handy trick in boo? :)
  
  
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment5</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment5</guid><pubDate>Mon, 11 Jun 2007 09:24:00 GMT</pubDate></item><item><title>Ayende Rahien commented on Boo trick: Even Nicer Hash Literals</title><description>Tobin, yes, that is what I was aiming for.
  
And yes, I would have little issue in using this for production. The IDE is #Develop, which isn't as polished as VS, but I find that the language more than make up for it.
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment4</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment4</guid><pubDate>Mon, 11 Jun 2007 08:59:10 GMT</pubDate></item><item><title>Ayende Rahien commented on Boo trick: Even Nicer Hash Literals</title><description>Almost, you can do this:
  
  
component Grid, {@source: users}
  
  
I don't like the @ in the middle of it.
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment3</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment3</guid><pubDate>Mon, 11 Jun 2007 08:47:09 GMT</pubDate></item><item><title>Tobin Harris commented on Boo trick: Even Nicer Hash Literals</title><description>Nice trick! Reminds me or the Ruby style literals which I agree make for much more readable code...
  
  
class customer
  
  has_one :account
  
  mas_many :orders
  
end
  
  
I'd like to try Boo out, would you recommend it for use in commercial projects at this stage?
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment2</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment2</guid><pubDate>Mon, 11 Jun 2007 08:42:39 GMT</pubDate></item><item><title>Adam Tybor commented on Boo trick: Even Nicer Hash Literals</title><description>I thought we could do this already with Brail.  This is how I pass configurations to ViewComponents, no?
</description><link>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment1</link><guid>http://ayende.com/2541/boo-trick-even-nicer-hash-literals#comment1</guid><pubDate>Mon, 11 Jun 2007 08:00:00 GMT</pubDate></item></channel></rss>