This is not meant to start a holy language war. I'm curious if there is something that Rust can learn from the "convenience" of PHP, or are all these "convenience" a result of untyped code and thus can't work in Rust.
Here are the observations:
To start a PHP project, all I need is a server with PHP support, edit a *.PHP file -- and BAM, I can start iterating.
With Rust, my current setup involves AWS Lambda. So the process is something like (2a) install musl libc, (2b) figureout how to compile Rust to run on Lambda, (2c) configure some AWS lambda end points [this is not Rust's fault], and (2d) deal with either rocket or actix to get routing working, and (2e) finally start writing my REST handler.
FB has also released "hack", which I'm not familiar with, but seems to suggest one can bolt types on to PHP.
Now, my question -- is it plausible that we one can build an Apache/Nginx "mod_rs", where one just drops some *.rs file in a directory -- and start iterating against it as a REST endpoint.
This would be like PHP, except *.rs instead of *.php files.
If the answer is "no, this can't be done" -- I'm curious what technical limitations prevent this from being done.
If the answer is "yes, this can be done" -- I'm curious on why this is a bad idea / hasn't been done yet.