|
|
|
|
|
|
|
|
|
|
Yorick
1.3.7.1: Runtime errorsRuntime errors in Yorick are often simple typos, like syntax errors:
Many errors of this sort would be detected as syntax errors if you had to declare Yorick variables. Yorick's free-and-easy attitude toward declaration of variables is particularly annoying when the offending statement is in a conditional branch which is very rarely executed. When a bug like that ambushes you, be philosophical: Minutely declared languages will just ambush you in more subtle ways. Other runtime errors are more interesting; often such a bug will teach you about the algorithm or even about the physical problem:
What is an oscillator with a Q of less than one half? Maybe you don't care about the so-called overdamped case --- you really wanted Q to be 2.5, not 0.25. On the other hand, maybe you need to modify the damped_wave function to handle the overdamped case. LLNL Disclaimers |