|
|
|
|
|
by Diggsey
1724 days ago
|
|
Deleting a database is probably a bad example, but my point still stands: even if you are not trasferring code back and forth, runtime state is enough to be a problem. What if your runtime state includes an `is_authorized` flag or similar? How do you guarantee that this state remains server-side when the entire language conflates server/client side code? For this to work, there needs to be language-level support for distinguishing untrusted inputs from trusted ones, or else it's a recipe for disaster. |
|
For example:
The compiler can infer that token is defined on the client, then sent to the server, which in turn defines username and sends that back to the client.It's the same system you'd use in normal server/client architecture, just inlined.