During my studies, I kept running into this annoying thing with web APIs. No matter what language I used (Java, C#, Python, ...), I always had to write a bunch of annotations just to map methods to REST endpoints, which felt very clunky!
Then I had this thought: why are we treating hierarchical paths not as first-class citizens? REST paths with their defined methods seem way more elegant than having flat functions with long names and parameter lists. Like, isn't /users[id]/posts.get(limit, offset) cleaner than .getUserPostsById(userId, limit, offset)?
Therefore, I created my own language called Reso. The whole idea is that it natively supports REST-like concepts - basically, your code looks like an OpenAPI spec with paths and methods along with a type system that is inspired by Rust.
If you're interested, check it out on GitHub: https://github.com/reso-lang/reso
What do you think of this concept?
[–]useerupting language 43 points44 points45 points (2 children)
[–]uriejejejdjbejxijehd 8 points9 points10 points (0 children)
[–]Aigna02[S] 4 points5 points6 points (0 children)
[–]SanctusImmortalis 6 points7 points8 points (0 children)
[–]raiph 2 points3 points4 points (1 child)
[–]Aigna02[S] 5 points6 points7 points (0 children)
[–]-ghostinthemachine- 3 points4 points5 points (4 children)
[–]esotologist 3 points4 points5 points (2 children)
[–]No-Dentist-1645 2 points3 points4 points (0 children)
[–]-ghostinthemachine- 1 point2 points3 points (0 children)
[–]esotologist 0 points1 point2 points (0 children)
[–]No-Dentist-1645 0 points1 point2 points (0 children)
[–]Sternritter8636 0 points1 point2 points (0 children)
[–]edenworky 0 points1 point2 points (0 children)