On 4 Jul 2011 06:16, RobG wrote:

Choosing to use objects with defined property names instead of formal 
parameters isn't a language feature, it's a design decision. That IDEs

don't support it likely means it is too difficult to do easily

I think IDEs already use docblocks to get param info. It should be quite easy 
to include a format for object literal notation. Not that I'm trying to 
encourage the proliferation of docblocks into the JS language.

The design decision is based quite heavily on the language feature, the object 
literal.  Given this notation, it's an easy decision to come to, given 
that a list of args has no meaning while an object literal has some.

David

P.S. Please let me know if my MUA is a bit rubbish for mailing lists.  I 
noticed the formatting of my email in your quotes was a bit ugly.

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to