- expression-oriented programming one of the great advances of FP
- expressions plug together like legos, making more malleable programming experience in-the-small
Write in an expression-oriented style, scoping variables as locally as possible:
| /** | |
| * Hypertext Transfer Protocol (HTTP) response status codes. | |
| * | |
| * @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
| */ | |
| export enum HttpStatusCode { | |
| /** | |
| * The server has received the request headers and the client should proceed to send the request body | |
| * (in the case of a request for which a body needs to be sent; for example, a POST request). |
| "use strict"; | |
| /** | |
| * Hypertext Transfer Protocol (HTTP) response status codes. | |
| * @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
| */ | |
| enum HttpStatusCode { | |
| /** | |
| * The server has received the request headers and the client should proceed to send the request body |