Naming convention
#2606
-
Hey guys! Quick question... Why are some functions camelCased while others are not? Like tryFunction/trycatch. Is there a rule behind it? |
Beta Was this translation helpful? Give feedback.
Answered by
kgryte
Jul 15, 2024
Replies: 1 comment 1 reply
-
@svallory Thanks for opening this discussion. Where are you referring to, specifically? Documentation, namespace? Looking at the docs and namespace, it does look like we are inconsistent here: .In this particular case, I don't think we have a rationale for diverging conventions. I'd be inclined to update |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
svallory
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@svallory Thanks for opening this discussion. Where are you referring to, specifically? Documentation, namespace?
Looking at the docs and namespace, it does look like we are inconsistent here:
stdlib/lib/node_modules/@stdlib/utils/lib/index.js
Line 1769 in 7c17308
In this particular case, I don't think we have a rationale for diverging conventions. I'd be inclined to update
trythen
andtrycatch
totryThen
andtryCatch
, as this seems preferable totryfunction
andtryrequire
.