fix #12451 by providing a better error message#12453
fix #12451 by providing a better error message#12453StefanKarpinski merged 1 commit intoJuliaLang:masterfrom
Conversation
ca58ab2 to
ac872fd
Compare
|
Instead of fixing up the thrown error with a try/catch block (which is fairly expensive), it'd be better to detect the error state itself before it occurs. I'm not sure that you can do much about non-iterables (that's probably solved by a more informative error display at the REPL for missing |
|
@mbauman try/catch: true - my rationale was that running that check every time a Dict is constructed is also expensive (e.g. for many elements), so rather only check on error. So better check for |
|
A few performance spot-checks would be ideal. At the very least, you can move this into the catchall |
fix #12451 by providing a better error message
No description provided.