Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OO
#2
It's planned for the 2.x releases... please be patient.

Regarding to OOP (which I also like):
  1. It's rather complex to implement (will make the compiler much more complex; I'm still refactoring it a lot to avoid to rewrite it form scratch!)
  2. Will make your program slower and take more memory (introduced overhead)
  3. Will be hard to implement in Z80 due to its few registers
  4. Will change BASIC dramatically
There's also another thing I would like to discuss with all of you regarding to the ZX Basic language and where it would go from here...
When you add pointers, OOP and templates to a BASIC language is it still BASIC? Basic was designed to be easy to learn (we all know). I just pointed out this in the FreeBasic forum: If you add OOP, Pointers and Templates you don't have BASIC anymore, but a language like C++ with BASIC keywords instead. It makes no sense.

Of course I will also like BASIC to evolve, but we should choose features with care (e.g. python and java do not use pointers), instead of copying what we already know from other languages.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)