On 10/23/07, James Cox <[EMAIL PROTECTED]> wrote:
> I still think the syntax is a little wet... When you're just specifying
> lists of things (like, apples, oranges and grapes):

I see what you're going for, but I actually haven't run in to the need
for something like that: If it's a simple list that you're rarely
going to be adding properties to, why not write it out in expanded
form the one time and be done? OTOH, if you find yourself adding *any*
properties to the list entries, you're going to want them in expanded
form anyways.

I'm trying to keep Rathole's changes as minimal as possible: I think
keeping things very focused will increase the chances of getting this
(or something like it) folded back into Rails proper.

It should be pretty darn easy for you to write a plugin that provides
the features you're looking for, though. :)


~ j.


> apple:
>   name: apple
>
> orange:
>   name: orange
>
> grape:
>   name: grape
>
> It'd be cool if you could collapse all that:
>
> fruits: grape, orange, apple
>
> (this being fruits.yml)
>
> alternatively - in DEFAULTS, you could have keys that have a 'collapse'
> value.... and that collapses to the block key....
>
> OK, that probably makes no sense at all, but if it does, it'd be awesome if
> it had that support...
>
>  - james
>
>
>
>
> On 23 Oct 2007, at 06:49, John Barnette wrote:
>
>
> On 10/22/07, Courtenay <[EMAIL PROTECTED]> wrote:
> The syntax is great!  But this defaults thing is difficult to remember
>
> DEFAULTS: &DEFAULTS
>     created_on: <%= 3.weeks.ago.to_s(:db) %>
>
>   first:
>     name: Smurf
>     <<: *DEFAULTS
>
> Absolutely, and it would be really easy to support a DEFAULTS key
> internally instead of letting YAML do it. I originally avoided
> supporting the defaults internally to keep the code from bloating, but
> that might be a lame reason.
>
>
> ~ j.
>
>
>
>
>
>
> --
>
>
> James Cox,
> Internet Consultant
> t: 07968 349990  e: [EMAIL PROTECTED] w: http://imaj.es/
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to