Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ternary shorthand
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bilge  
View profile  
 More options Aug 13 2012, 1:34 am
From: Bilge <bbi...@gmail.com>
Date: Sun, 12 Aug 2012 22:34:26 -0700 (PDT)
Local: Mon, Aug 13 2012 1:34 am
Subject: Ternary shorthand

It should not be necessary to specify both alternations of the ternary
statement if the false condition is not significant. Consider the following:

{{ input is checked ? 'checked' : '' }}

It should be possible to condense this to be expressed more simply.

{{ input is checked ? 'checked' }}

The default value for the false case should just be null.

Note that this behaviour is not the same as PHP's ?: operator.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »