My wishlist for PureBasic 4.50
Got an idea for enhancing PureBasic? New command(s) you'd like to see?
- Fred
- Administrator
Administrator - Posts: 18344
- Joined: Fri May 17, 2002 4:39 pm
- Location: France
- Contact:
Dunno where you read this, but i won't have to learning anything to build an object oriented version of PB. I do use object language on daily basis (C++ and JAVA) and trust me, it's not that difficult to do a compiler which handle that (there is quite some BASIC around with OOP support btw). The fact is you can't have both approach in the same langage. C++ is a real mess in this regards. You can still code in procedural way and object oriented way, at the same level, in the same programs. It result is very hard to maintain code, especially from old C ports which have been 'objectized'.Kale wrote:In fact i think i read somewhere in another thread that Fred wouldn't even know where to begin implementing OOP in PB (me neither), it would take a massive redesign and a huge amount of learning on his part.
Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.
- Fred
- Administrator
Administrator - Posts: 18344
- Joined: Fri May 17, 2002 4:39 pm
- Location: France
- Contact:
This is true, it would need a major overhaul as it hasn't been build for it from the start. That doesn't mean it would be hard but probably very time consuming ;)srod wrote:I seem to remember you saying years ago Fred that the compiler would need a complete redesign before it could support OOP in any meaningful way? Perhaps it is to that comment which Kale referred?
The Times They Are A-Changin?
In accord BASIC acronym I consider PureBasic as a tool for casual programmers („beginers"). Small a medium tasks are typical for such users.Objects are not essential.Fred wrote: Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.
I (and many others) like PB just for simple procedural syntax.
In 2005/10 Fred said in one interview:" I don't plan to add class and such I think it will split the PB world in 2 classes (!): the one which have understood fully how OOP work and other which don't. Which means than you couldn't share source codes easily anymore at one place. Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)"
Is this opinion still valid?
- Fred
- Administrator
Administrator - Posts: 18344
- Joined: Fri May 17, 2002 4:39 pm
- Location: France
- Contact:
Re: The Times They Are A-Changin?
Yes, it's still valid. It's exactly what i wrote above :)Lubos wrote:In 2005/10 Fred said in one interview:"Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)"
Is this opinion still valid?
- Kale
- PureBasic Expert
PureBasic Expert - Posts: 3000
- Joined: Fri Apr 25, 2003 6:03 pm
- Location: Lincoln, UK
- Contact:
Re: The Times They Are A-Changin?
Fred, have you ever though of developing a language that isn't targetted at beginners? A complete new language using OOP from the ground up? I'd buy such a thing. :wink:Fred wrote:Yes, it's still valid. It's exactly what i wrote above :)Lubos wrote:In 2005/10 Fred said in one interview:"Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)"
Is this opinion still valid?
I hope that never happens... unless that's what it takes to keep Fred's bank account in the black and PureBasic alive...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Thoughtfully, if you want a language which is not beginner oriented, you've got some choice already available on the market. I can't see any point to a Fred-developed, hard to use language... Still, to me, OOP isn't that hard to write and is easier to read (tell me, when you open a year-old procedural code, can you immediately understand what you were doing?).
But I still enjoy PB the way it is.
But I still enjoy PB the way it is.
Return to "Feature Requests and Wishlists"
Jump to
- PureBasic
- ↳ Coding Questions
- ↳ Game Programming
- ↳ 3D Programming
- ↳ Assembly and C Programming in PureBasic
- ↳ The PureBasic Editor
- ↳ The PureBasic Form Designer
- ↳ General Discussion
- ↳ Feature Requests and Wishlists
- ↳ Tricks 'n' Tips
- Bug Reports
- ↳ Bugs - Windows
- ↳ Bugs - Linux
- ↳ Bugs - Mac OSX
- ↳ Bugs - C backend
- ↳ Bugs - 3D Engine
- ↳ Bugs - IDE
- ↳ Bugs - Documentation
- OS Specific
- ↳ AmigaOS
- ↳ Linux
- ↳ Windows
- ↳ Mac OSX
- ↳ Raspberry PI
- Miscellaneous
- ↳ Announcement
- ↳ Off Topic
- Showcase
- ↳ Applications - Feedback and Discussion
- ↳ PureFORM & JaPBe
- ↳ TailBite