[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-dev] Start using booleans instead of integers acting like bool
From: |
Marcos García |
Subject: |
[Dolibarr-dev] Start using booleans instead of integers acting like booleans |
Date: |
Mon, 6 Aug 2012 01:17:50 +0200 |
Hello,
I've checked Dolibarr's code and I've seen that many functions are using integers 1 and 0 as booleans, which actually shouldn't be used because:
1. When checking for True or False, it could be a conflict between 0 and False
2. It's not a good practice.
I think this should not be changed immediately but start migrating into it.
- [Dolibarr-dev] Start using booleans instead of integers acting like booleans,
Marcos García <=