GSOC | Extending Common Lisp support

Helmut Eller eller.helmut@gmail.com
Thu Jun 14 06:01:00 GMT 2012


* Charles Turner [2012-06-13 23:09] writes:

> On 13 June 2012 23:53, Per Bothner <per@bothner.com> wrote:
>> What is the advantage over:
>>
>> @NeverReturns void signal(Throwable error) {
>>     throw new RuntimeException(error);
>> }
>>
>> (where @NeverReturns is annotation I'm planning on adding).
>
> I interpreted it simply as void signal(String msg) { throw new
> RuntimeException(msg); }. Not sure what the point of having a
> throwable parameter is.

Yes, you probably alsow want to overload signal a version with plain
strings.  Tho, it could itself be:

RuntimeException signal(String msg) { throw signal(new Error(msg)); }

Helmut



More information about the Kawa mailing list