====== Signify Order ======
In most programming languages brackets are used to signify the order something is to be done in. We can't have that, because it will look too complicated, and its not how you would say it. So instead lets use ` and ´:
I HAS A var ITZ ```2+3´ - `4+5´´/30´*60
this is the same as (( (2+3)-(4+5) )/30)*60
----
I think it's already been stated that we're avoiding all punctuation except ! and ?.
Your code would look like:
I HAS A NUMBAR ITZ ```2 ADDZ 3' MINUSEZ
`4 ADDZ 5'' DIVIDEZ 30' TIMEZ 60
I really like reverse polish notation. If you did that, you wouldn't need brackets at all:
I HAS A NUMBAR ITZ 2 3 ADDZ 4 5 ADDZ
MINUSEZ 30 DIVIDEZ 60 TIMEZ
It's wacky. Maybe kitties would do prefix notation, like so:
I HAS A NUMBAR ITZ TIMEZ DIVIDEZ MINUSEZ
ADDZ 2 3 ADDZ 4 5 30 60
Hoh, yeah.
--- //Risser, 2007/05/29 16:10//
----
**HO YEAH** indeed. I like it. Can you develop it further, folks? --- //Adam, 2007/05/29 16:19//
----
Develop which part, prefix or postfix? I grew up on HP calculators, so I can think in postfix pretty well. But prefix is harder.
Otherwise, there's not much more to it.
--- //Risser, 2007/05/29 17:16//
----
This is starting to sound more and more like COBOL...
I HAS A NUMBAR ITZ ```2 ADDZ 3' MINUSEZ
`4 ADDZ 5'' DIVIDEZ 30' TIMEZ 60
for instance... this is a very scary though. cats + mainframes.
Regardless, the 'quotes' are a nice addition, but could easily get confusing in deep equations. Still, so can brackets for that matter. The real issue is distinguishing these and encapsed strings. Would that issue ever arise?
--- //chaos, 07-05-30, 13:10//
----
I suggested stack-based math in another article... That's almost exactly rpn (if I understand RPN correctly). I agree wholeheartedly with doing that, but I also think that we should seriously consider having a more advanced stack-based construct, such as the FIGGER that I suggested in [[contributions:operators]].
--- //Kyle, 2007/05/30 18:36//
----
If you call it Polish Reverse Notation, we can abbreviate it [[contributions:PRON]]