[KyOSS Discuss] Meeting Wednesday at new venue: Click IT Staffing

Chris Rockwell chris at chrisrockwell.com
Tue Jul 8 14:10:02 EDT 2014


I'm not sure I understand why you would need to work around the 'return
blunder' in that way.

Instead of
----
return {} &&
{
  abc: true,
  xyz: false
}
----
Why not:
-----
var myimportantinformation = {
  abc: true,
  xyz: false
}

return myimportantinformation
-----

Chris Rockwell


On Tue, Jul 8, 2014 at 2:05 PM, Deven Phillips <deven.phillips at gmail.com>
wrote:

> AHA! Gotcha! I'm a curly brace on the same line kinda guy, but modern IDEs
> allow you to automatically translate from one set of style conventions to
> another...
>
> Deven
>
>
>
> On Tue, Jul 8, 2014 at 2:04 PM, <ryanstortz at electrifiedpulse.com> wrote:
>
>> because "return" statements are the exception in javascript in that they
>> accept input only from the same line.
>> Throwing in a OR/AND operator will allow you to drop your operand to the
>> second line.
>>
>> This is if you want to use a curly brace on a new line convention,
>> which Crockford warns about, as the "return blunder!"
>>
>> Ryan
>>
>>
> _______________________________________________
> KyOSS-Discuss mailing list
> KyOSS-Discuss at kyoss.org
> Subscribe by sending email to kyoss-discuss-subscribe at kyoss.org
> Unsubscribe by sending email (from the address you wish to unsubscribe) to
> kyoss-discuss-unsubscribe at kyoss.org
> Difficulty unsubscribing? Check your email headers for originally-to
> address in case you are forwarding your mail.
> More options at http://kyoss.org/cgi-bin/mailman/listinfo/kyoss-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kyoss.org/pipermail/kyoss-discuss/attachments/20140708/cd586e7f/attachment-0001.html>


More information about the KyOSS-Discuss mailing list