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

ryanstortz at electrifiedpulse.com ryanstortz at electrifiedpulse.com
Tue Jul 8 14:12:48 EDT 2014


yeah, a lot of people do that I believe.
I just thought it was worthy to note that it wasn't a very strict 
blunder.

var r = {};

return r;

Good call, Chris,

Ryan

On 2014-07-08 12:10, Chris Rockwell 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 [1]
> 
> 
> 
> Links:
> ------
> [1] 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


More information about the KyOSS-Discuss mailing list