Skip to content

Error handling #1

@tjpalmer

Description

@tjpalmer

Automated error handling would be great, for example:

func create_context(): !SDL_Context {
    window := SDL_CreateWindow(...);
    if (!window) {
        throw NO_WINDOW;
    }
    context := SDL_GL_CreateContext(window);
    if (!context) {
        throw NO_CONTEXT;
    }
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions