r/functionalprogramming • u/TheWix • May 03 '23
Question Partial Application Naming Convention in Typescript
Hey, I'm writing this cause I can't find much on this for TS, but I was wondering what convention people use for variables that are bound to a partially applied function? Sometimes it is very obvious, but other times it's not. F# uses ticks (`) but that's not an option in TS. So, In curious if others out there have a good convention?
11
Upvotes
View all comments
Show parent comment
2
u/TheWix May 03 '23
Might be an apostrophe but it is something like
let add' = add 1in this case I would call it add1 but there other times where I am passing some dependencies and you end up with awkward names like 'const getProductWithDeps = getProduct(deps)' or something.