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

Deven Phillips deven.phillips at gmail.com
Tue Jul 8 14:13:17 EDT 2014


Because that still puts the curly brace on the initial line...

Ryan's preference for that syntax would be something like:

var myimportantinformation =
{
  abc: true,
  xyz: false
}

return myimportantinformation


On Tue, Jul 8, 2014 at 2:10 PM, Chris Rockwell <chris at chrisrockwell.com>
wrote:

> 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
>>
>
>
> _______________________________________________
> 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/c81fcb03/attachment.html>


More information about the KyOSS-Discuss mailing list