[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: behaviour of assert on non-string errors
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sat, 18 Jan 2014 11:59:24 +0200
2014/1/18 Peng Zhicheng <pengzhicheng1986@gmail.com>:
> IMHO, `assert' and `error' have quite different semantics and use cases.
> So, it is quite reasonable for me that `assert' only accept a string
> message, since it is to give the (interactive session) user some clue
> about what went wrong, instead of to give `pcall' the `error object' to
> examine (and maybe to retry or recover) in a programamtic way,
> in which case `error' should be used.
+1