logoalt Hacker News

Alifatisklast Sunday at 1:06 PM0 repliesview on HN

Dart does this, you can mark a variable as "late" which tells the compiler that you know for certain the variable will be written too before read. If something reads the variable before it's initialized, then the runtime will error. Maybe even on compile time if it can be caught, I am not certain.