Post Reply 
HP Prime speed vs TI-Nspire CX
11-09-2016, 08:44 AM
Post: #21
RE: HP Prime speed vs TI-Nspire CX
I use a construct like the following for most programs that do real work.

J=1
While (J Ne 0) DO
Case j=1 Then.... j = x End
j=2 Then.... j = y End
j=3 Then.... j=z End
End

Sort of a pseudo-hp50g code. It allows an arbitrary state machine to be written in Structured Programming. (I don't remember the Prime commands as I no longer use the Prime; trying to update it's memory fried a rather expensive desktop and the Prime was banished.)

Without GOTOs, error handling is hard. Most modern languages do have enough constructs to make GOTOs irrelevant. They are not needed for looping or branching. They are really only useful when one needs to jump across contexts without unwinding the whole context (mostly in error handling.)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP Prime speed vs TI-Nspire CX - jte - 11-08-2016, 06:43 PM
RE: HP Prime speed vs TI-Nspire CX - DGM - 11-08-2016, 09:10 PM
RE: HP Prime speed vs TI-Nspire CX - ttw - 11-09-2016 08:44 AM



User(s) browsing this thread: 1 Guest(s)