What programming language best bridges the gap between pseudocode and code?

You may be interested in Literate Programming, where the "source code" you write is more like writing a book, but its a book that can be "tangled" into real code or "woven" into formatted documentation.

See the examples provided at http://www.literateprogramming.com/cweb_download.html.

You may also find Eiffel interesting:

"... Eiffel shuns coding tricks or coding techniques intended as optimization hints to the compiler. The aim is not only to make the code more readable, but also to allow programmers to concentrate on the important aspects of a program without getting bogged down in implementation details. ..."


Pascal was relativery popular in that kind of pseudocode descriptions.


I think it depends exactly on the pseudocode flavor. A lot of the pseudocode I've seen in Algorithms text books looks like Pascal ironically. Pascal was always considered a good teaching language.


I would rate Python first, over Lisp, just because most people don't write pseudocode using the prefix paren syntax :)

Tags:

Pseudocode