I want my code to be readable. an IF that isn't terminated with an End if makes for difficult to read code. Yet Brightscript seems to complain if you have every if terminated, for instance:
if x=1 then returnwill throw an error if you put an
end if after it thus making the code hard to read at a glance...
which is driving me nuts trying to write a message loop that will handle lots of types of messages because it
appears to require lots of nested if then else statements.
I wish there was a "Switch" or "Case" statement - easier to use for handling piles of different conditions
further, it seems that every example of this kind includes an
if type(msg) to determine the type of message and then
another nested if
if msg.GetMessage()="blahblah" statement.
Why even bother checking the type and then the message when we can just check the message string itself?
Just blowing off steam, but would love to see some enlightening commentary on this.
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!