Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

assert statement #321

Closed Akuli closed 1 year ago

Akuli commented 1 year ago

There is currently no good way to do assert(). C's assert() is a macro, not a function, so you can't just declare it and use it in Jou.

You can define your own assert() function but it has some disadvantages:

I think the real solution is a built-in assert statement, similar to Python and Java.