Immediately after switching the page, it will work with CSR.
Please reload your browser to see how it works.
( The sample I have is 0, NULL and nullptr where nullptr is something new. Two ways of doing something makes the language complex. )
#include <ownership.h>
#include <stdio.h>
int main()
{
FILE *owner f = fopen("file.txt", "r");
if (f)
fclose(f);
}
But comparisons are inevitable, and I also think there are lessons learned
in Rust.C programmers uses contracts, these contracts are part of documentation of some API. For instance, if you call fopen you must call fclose.
All we need is to create contracts that the compiler can read and verify automatically.
This video shows how cake can help programmers to create safe code just fixing warnings.
https://youtu.be/X5tmkF16UMQ
We copy paste code then we add pragma safety enable
This enables two features ownership and nullable checks. Ownership will check if the fclose is called for instance, also checks double free etc, while nullable checks will check for de-referencing null pointers.
New qualifiers _Opt and _Owner are used but they can be empty macros, allowing the same code to be compiled without cake.