[prev in list] [next in list] [prev in thread] [next in thread]
List: flightgear-devel
Subject: Re: [Flightgear-devel] Nasal snippet
From: "chris () musicchris ! de" <chris () musicchris ! de>
Date: 2017-09-29 13:46:55
Message-ID: 6eba257e-f45f-fc5f-2557-fb515241c14e () musicchris ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Am 29.09.2017 um 10:38 schrieb James Turner:
>
>> On 29 Sep 2017, at 09:05, Stuart Buchanan wrote:
>>
>> And not teach grandmother to suck eggs, but if the operator
>> precedence isn't completely obvious, use brackets to make it do
>> exactly what you want :).
>>
>> Also I personally don't like negative conditional statements, so I
>> would (re-)write it as
>>
>> if (var_a == var_b) return;
>>
>> ... which to my eyes is much easier to understand and does the same
>> thing :)
>
> Yes, Nasal allows some very confusing code, the real answer is ‘use
> parentheses to make the precedence explicit'
>
> Kind regards,
> James
>
Indeed! Stuarts example looks much friendlier to the eyes! Thanks again!
:o)
Cheers
chris
--
https://musicchris.de
GnuPG Fingerprint: FCFF A94E E987 33C0 F9A0 3FB3 D5FC DF84 9FB3 AC75
GnuPG Info: https://musicchris.de/index.php?page=blog&index=13
["signature.asc" (application/pgp-signature)]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic