[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: An interesting new ways to do errors
- From: Josh Simmons <simmons.44@...>
- Date: Tue, 22 Nov 2011 16:20:25 +1100
On Tue, Nov 22, 2011 at 4:17 PM, Daurnimator <firstname.lastname@example.org> wrote:
> On 22 November 2011 16:05, Dimiter "malkia" Stanev <email@example.com> wrote:
>> Look interresting...
>> Do you plan on releasing this with some license?
>> Is it okay if I put in my project (same license as lua and luajit)?
> Consider the above snippet under MIT license :)
> If people like it; I suggest that it is only used once between
> projects and dependacies:
> I had to use a special unique value (err_signifier) to differentiate
> between normal yields and error-yields:
> If a project has 2 different version of the library in the project;
> errors thrown with one will not be caught with the other.
I suppose this is where symmetric coroutines would be useful.
Interesting idea nonetheless I might have a play when I get home.