What minor features do you love about PureBasic?

Everything else that doesn't fall into one of the other PB categories.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

What minor features do you love about PureBasic?

Post 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
Last edited by Mistrel on Fri Oct 04, 2019 8:42 pm, edited 3 times in total.
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: What minor features do you love about PureBasic?

Post by Tenaja »

Just reading the headline, that was what came to my mind.
Post Reply