If a language like this were to take off, I could see linter-style errors pop up that are not currently possible. "ERROR: maximum memory usage computed to be XYZ MB, which is higher than the speicified limit of 500MB" Now that would help keep the RAM bloat down!
My functional language Winter has errors like that. You can compute the maximum memory usage of the program and then throw an error if it exceeds some threshold. Edit: I'll add that there are lots of programs the prover can't effectively handle right now, so can't compute a good memory bound. It works fine for some relatively simple programs however.
And always will be, due to Rice's Theorem. Can still be useful though - various formal methods techniques are like this.