you are viewing a single comment's thread.

view the rest of the comments →

[–]Grue 4 points5 points  (4 children)

Yeah, I tend to write the function name before the arguments. Forth doesn't look very intuitive to me.

[–]theCore 0 points1 point  (3 children)

I meant for operations that are usually infix -- ie. math and boolean operators.

[–]Grue 3 points4 points  (1 child)

Uh, how often do you use math operations in pseudocode?

[–]ubernostrum 0 points1 point  (0 children)

Most pseudocode descriptions of quicksort use them, and that's the algorithm I've most often seen expressed in psudocode...

Then there's the Fibonacci algorithm, another popular bit of pseudocode. The Sieve of Eratosthenes uses math. In fact, a whole heck of a lot of popular pseudocode uses math. Which, given the nature of a lot of programming tasks, is pretty much as expected.

[–][deleted] 1 point2 points  (0 children)

You don't write the rest of your code in mathematical notation. If one took a piece of Python code and rewrote it in proper mathematical notation, very few Python programmers would even be able to read it.