user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* thoughts on failure messages in UI/UX...
@ 2020-12-17 23:25 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2020-12-17 23:25 UTC (permalink / raw)
  To: meta

Most command-line programs in AOT compiled languages won't
emit line numbers on failures.

On the flip side, languages like Python/Ruby spew huge
stack traces on failures that most users probably glaze over
(I know I do :P)

Perl die("no trailing newline") will emit the line number it's
called from, but die("newline exists\n") omits the line number.

I'm thinking we should favor showing the line number since
anybody running our code already has the source available
(this is why I prefer scripting languages).

That would allow users to open that code in $EDITOR and poke
around.  If they need to, they can replace the die() call with
Carp::confess/longmess to dump stack.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-17 23:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 23:25 thoughts on failure messages in UI/UX Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).