TropicSapling/triforce

Make semicolon ';' after curly braces '}' optional?

Opened this issue · 1 comments

This is already the case for built-in things, such as with if statements:

if cond {
    doSomething;
} // no semicolon needed here

However, currently it's required to put semicolons after non-builtin functions even if they end with curly braces:

some_func {
    doSomething;
    return_something
}; // semicolon required

Perhaps it's possible to make this optional though? So that you could write it like this instead:

some_func {
    doSomething;
    return_something
}

Perhaps it should only be optional when the function doesn't return anything?

This is going to be pretty hard with the new system.