What minor features do you love about PureBasic?
Posted: Fri Oct 04, 2019 6:35 pm
I've always loved how simple it is to perform an operator assignment in PureBasic compared to any other language I've used.
C/C++
Other:
But in PureBasic it's short and sweet:
This even trumps the less verbose increment operator in C/C++.
There is another feature that was removed which I miss terribly. It used to be possible to perform logical expressions on strings with an empty string evaluating as false. It saved some typing and, at least to me, felt natural to read:
viewtopic.php?p=433060
C/C++
Code: Select all
a += 1
b %= 2
c /= 3Code: Select all
a = a + 1
b = b % 2
c = c / 3Code: Select all
a + 1
b % 2
c / 3There is another feature that was removed which I miss terribly. It used to be possible to perform logical expressions on strings with an empty string evaluating as false. It saved some typing and, at least to me, felt natural to read:
viewtopic.php?p=433060