this post was submitted on 09 Nov 2023
234 points (98.8% liked)
Europe
8484 readers
1 users here now
News/Interesting Stories/Beautiful Pictures from Europe ๐ช๐บ
(Current banner: Thunder mountain, Germany, ๐ฉ๐ช ) Feel free to post submissions for banner pictures
Rules
(This list is obviously incomplete, but it will get expanded when necessary)
- Be nice to each other (e.g. No direct insults against each other);
- No racism, antisemitism, dehumanisation of minorities or glorification of National Socialism allowed;
- No posts linking to mis-information funded by foreign states or billionaires.
Also check out [email protected]
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Separate
?amount=32
andcurrency=Euro
to add currency support.I thought about that, but I think it's actually more error prone, because people might just be setting
?amount=32
and leaving outcurrency
which might lead to unexpected behaviour. Implementors tend to interpret this differently and one app might take the default currency and the other might fail to accept it, and that kind of different behaviour is a common source of security issues. Having a single unified parameter that must always contain the value and currency "solves" that issue.Makes it a bit more annoying to parse, though I definitely see your point.
However, you're still proposing a standard: "has to include both the currency and the amount in the parameter", so why not split them up at that point?