It is currently Fri Jan 22, 2021 4:21 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: What minor features do you love about PureBasic?
PostPosted: Fri Oct 04, 2019 6:35 pm 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3371
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:
a += 1
b %= 2
c /= 3


Other:

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


But in PureBasic it's short and sweet:

Code:
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.

Top
 Profile  
Reply with quote  
 Post subject: Re: What minor features do you love about PureBasic?
PostPosted: Fri Oct 04, 2019 8:21 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 1719
Just reading the headline, that was what came to my mind.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye