Re: routine_id() is not working
- Posted by jimcbrown (admin) Apr 11, 2013
- 1691 views
No error was thrown when the two files both included a sleep,
No error should be thrown here!!! The whole point of namespaces - this shouldn't be an error!
and none was thrown when routine_id() was used on sleep.
This should be optional. There are cases when you want to just let the code continue when routine_id() can't figure things out, but other times you do want an error to be thrown to catch this bug.
I'm quite partial to Pete's optional parameter idea for this.
So i also suggested it might be more helpful for the crash-on-start to list the routine_id(sleep) lines when it found two sleeps in the same namespace.
If the user specifies that routine_id() should crash, then yes! I fully agree with this.
, and maybe to limit the scope of the post i shouldn't have, mentioned
I'd agree with this principle in general, but I disagree with this particular instance. It's too relevant to the topic at hand to be ignored.

