Page 1 of 1

What minor features do you love about PureBasic?

Posted: Fri Oct 04, 2019 6:35 pm
by Mistrel
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++

Code: Select all

a += 1
b %= 2
c /= 3
Other:

Code: Select all

a = a + 1
b = b % 2
c = c / 3
But in PureBasic it's short and sweet:

Code: Select all

a + 1
b % 2
c / 3
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

Re: What minor features do you love about PureBasic?

Posted: Fri Oct 04, 2019 8:21 pm
by Tenaja
Just reading the headline, that was what came to my mind.