<i>errors disappear in trace callbacks</i> status still Open with 4 other changes
by
.
D 2004-08-26T15:26:38
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nSorry,\sI\sdisagree.\s\sIf\serrors\sare\sswallowed\sthen\swe\shave\sa\nwell-defined,\sconsistent\sbehaviour:\scommand\srenames\sand\ndeletes\salways\ssucceed.\s\sTherefore\sall\strace\scallbacks\scan\nassume\sthat\sis\strue.\n\nOf\scourse\sthis\sdoesn't\smean\sthat\sa\sbadly\swritten\scallback\ncan't\saccidentally\sthrow\san\serror\sand\stherefore\snot\ssucceed\nand\stherefore\sleave\s_itself_\sin\san\sinconsistent\sstate.\sBut\nthat\sis\san\sexample\sof\sthe\sprogrammer\scausing\sthemselves\sa\nproblem.\n\nHowever,\sif\serrors\spropagate,\sthen\sthe\sexample\sI\sgave\sshows\nhow\sone\strace\scallback\scan\sabort\sa\s'rename'\sand\stherefore\ncause\sproblems\sto\sanother\strace\scallback\swhich\sdoesn't\sknow\nthe\srename\swas\saborted.\n\nThis\smeans\sthat\sone\sprogrammer\scan\sshoot\sanother\sprogrammer\nin\sthe\sfoot.\s\sThat's\sthe\sinconsistency\sI\sdon't\slike.\sThere's\na\sdistinction\sbetween\s'your\sprogram\sbeing\sin\san\sinconsistent\nstate'\sand\s'this\spiece\sof\scode\sis\sin\san\sinconsistent\sstate\nnot\sbecause\sit\scontains\sany\sbugs\sbut\sbecause\sa\stotally\ndifferent\spiece\sof\scode\scontains\sbugs'.\n\nIt's\salso\swhy\sI\slike\sthe\s'bgerror'\ssolution\sbecause\sit\navoids\sthis\sinconsistency.\s(But\syour\spoints\sabout\sthe\sevent\nloop\sare\sgood,\sand\smean\swe\seffectively\shave\sto\srule\sthat\nsolution\sout).\n\nNow,\sit\smay\swell\sbe\sthat\sallowing\sthis\sinconsistency\sis\sthe\nbest\sway\sforward,\strading\sit\soff\sfor\sbetter\sdebugging\s(i.e.\nreceiving\san\serror\smessage),\sbut\sit\swould\sbe\snice\sif\swe\scan\nfind\sa\smore\sconsistent\sapproach.\n\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 652765ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 9e8e7ea197af6ac6288de97838c21ed9