Devils advocate: if you were to measure usage of identifiers named “and” or “or”, on the web, how substantial do you think their use would be? And even if they were used a fair bit, that hasn’t really stopped the introduction of other contextual keywords in the past.
If you really wanted to, you could find a way to make this work. But I’m not saying we need to turn JS into Python or Perl. > On May 25, 2016, at 7:20 PM, Rick Waldron <waldron.r...@gmail.com> wrote: > > This is a non-starter, as AND and OR are already valid identifiers. > > On Tue, May 24, 2016 at 9:15 PM Francis Clavette <clavette.fran...@gmail.com > <mailto:clavette.fran...@gmail.com>> wrote: > Hi, > I’d like to be able to use AND for && and OR for || in conditional statements > in a future version of ECMAScript. It’s a feature I’ve always been wanting > since transitioning from PHP. It’s also much cleaner : > > if ($scope.newSourceModal.isShown() && $scope.newsource.type == "book" && > (!$scope.insertingFromScan || $scope.ok)) > > ============== > > if ($scope.newSourceModal.isShown() AND $scope.newsource.type == "book" AND > (!$scope.insertingFromScan OR $scope.ok)) > > > Francis > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org <mailto:es-discuss@mozilla.org> > https://mail.mozilla.org/listinfo/es-discuss > <https://mail.mozilla.org/listinfo/es-discuss> > _______________________________________________ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozilla.org/listinfo/es-discuss
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss