Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Reading from table and identifying whether the number is prime or not.

$
0
0

Gerrit Beukema wrote:

 

Best practice is to define all your variables at the top of your code.

No it's not.

 

It's actually safer to declare just before use. It's also helpful when remodularising code to have the declarations with the code that uses, and semantically it's clearer. In any case, with inline data declarations such as

DATA(val) = ....

such a standard becomes meaningless.


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>