Re: print/1 and quoted writing
Michael Hendricks <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CAFHuXubwxWbKVdLN8Cq4aRiKsnbJ_3xdT7LDqfsngBKXt=_rSw@mail.gmail.com> |
Hi Jan, On Sat, Dec 14, 2013 at 11:05 AM, Jan Wielemaker <[email protected]> wrote: > The predicate print/1 is typically used for printing (debug) messages. > That leads to nasty error messages like this: > > 1 ?- number_codes('1', X). > ERROR: Type error: `number' expected, found `1' > I ran into this problem during development today. What if the error message concluded with the native type of the "found" value. Like this: ERROR: Type error: `number' expected, found `1' (an atom) I realize this doesn't address the larger issue of portray + quoted, but it would have clearly resolved the ambiguity in my work today. -- Michael -------------- next part -------------- HTML attachment scrubbed and removed