Compiling Python to Delphi could be interesting. Or visualizing it like Python and expanding it into Delphi code.

[email protected]
Newsgroups alt.comp.lang.borland-delphi
Message-ID <[email protected]>
Implementing a python like language onto of Delphi could be interesting.

This could allow to write much shorter Delphi code which would fit the rapid application development mantra.

Example of possible python-like Delphi code:

Example of a function:

ComputeNumber( in SomeIndex, out SomeOtherIndex );
  SomeOtherIndex = SomeIndex * 100 + 5;


This much shorter syntax does away with the
begin/end noobieness that takes up a lot of lines and screen space and takes a lot of typing and copy & pasting, instead it's replace with indentation.

Furthermore integers are assumed as default type so no more typing : integer; which is kinda annoying for parameters.

Other short hand syntaxes could be thought of for object orientated design.

By compiling this x86 and hooking it up to Delphi's runtime library I see some benefits:

Faster generated code ?!

More easy framework than python, cause python does have some weird things like build in dictionaries and such... more delphi general purpose like... just shorter syntax for easy proto typing.

Much faster execution.

And especially and this is the big one: good debugging support, build straight into the product.

And hopefully a nice editor and the familiar environment of Delphi... and ofcourse access to all delphi existing code...

Call other classes and libraries and api's should be possible from reduced syntax mode.

Maybe even allowing to mix it with more fully fledge code.

Maybe even building something in so that Delphi can automatically convert "Python-short-hand syntax" to fully-fledge delphi code.

To save a lot of typing.

However it's also about "viewing".

Let's vertical lines used is more oversight of code.

Also another idea could be a special visualizer mode build straight into delphi... where begin and end statements are simply not displayed... to show essential code... and not waste screen space.

Especially the last idea is quite cool.

Both ideas are kinda cool.

For writing faster, and viewing better.

Bye for now,
  Skybuck.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.