Another (possible) silent error This case is not so clear
If I write [[xyz]] or {{xyz}} when I'm authoring a tiddler In most cases (not all) this is an error because I've misspelt xyz I'd like a mode where I got BIG error messages when refereeing to non-existent tiddlers /Joe On Monday, 12 March 2018 06:23:01 UTC-7, Joe Armstrong wrote: > > I have just discovered a bug in a tiddler. > > > I misspelled a macro name and didn't notice it – this is actually a common > error of mine. > > In all programming languages I tend to see what I hoped to see rather than > what is there. I'm pretty bad at spelling. > > > Mispellling a macro name is a serious error so I want the system to shout > out loudly when this happens. > > > What happens in TW is the expansion of (say) <<badname args>> causes a > > silent error if baname does not exit. ie there is no replacement text. > > > I'd like the replacement text to be Missing macro badname -- fatal error > in tiddler > > > Is this something I can easily fix???? > > > I HATE silent errors in programming languages - all programming and > run-time errors should cause a > > huge error message and execution should stop immediately. The error > message is so the > > programmer can fix the error. Stopping immediately is to avoid further > damage. > > > I given talks about the evils of silent errors. NaN > <http://127.0.0.1:8080/#NaN> in JS for example is causes errors > > which are terribly difficult to find. > > > I think any error that can be detected should result in a noisy error. > > > Cheers > > > /Joe > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/511c749a-5197-45e7-9bf2-d51e1eeb9239%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.