Ramtin Abadi
ramtinabadi.bsky.social
Ramtin Abadi
@ramtinabadi.bsky.social
Writing about business, tech, software, and anything in between
And yeah... I know... for an HTTP call, the method type is obvious. But what if you're calling a function that you're not familiar with and that is not properly documented?
August 22, 2025 at 11:41 PM
With an enum, the argument would not be a string but the type of an enum, which would allow us to know the possible values

So, instead of magically knowing I should pass "GET" as the method type, I would use, let's say, the "method" enum that has a set of predefined values.
August 22, 2025 at 11:41 PM