Is the example program in Actix-web considered good programming style for that framework?
The reason I ask is that the equivalent in Python/Flask might look like:
@app.route("/<name>/<id>/index.html")
def index(name, id):
return form("Hello {}! id:{}", name, id)
This has the advantages that:1. the endpoint "/<name>/<id>/index.html" goes in the code right above the function that implements it.
2. the variables are called `name` and `id` and not `info.0` and `info.1` which is a less informative naming convention.