rix
rix copied to clipboard
Side effects and C/asm
Matter of practicality you are going to need an FFI with C code and assembler. I would do that sooner rather than later.
I like the # prefix syntax. How about a syntax to denote impure functions?
$func, @func, %func, --func, `func, ?func, .... personally I like the question mark. Easy rule in the function table that pure functions cannot call question mark functions. If you add the question mark to all your Operating System calls like printing they should propagate rather naturally. Of course you can cheat with function pointers etc but it would be a big help.