Skip to content

get* vs * #2645

Answered by tan75
ipavlic asked this question in Ideas
Sep 24, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @ipavlic
thank you for such an interesting question!
I have already responded to this in the issue you raised so I'll just do a copy-paste here.

There are few reasons for having our current naming convention as is.
We wanted to make our API as similar to the standard JS library as possible so both APIs could easily be used together.
When it comes to getUnixTime, it copies the convention from MDN JS Reference Date getTime
One of the reasons for this naming convention is that its easier to maintain this huge amount of functions that we currently have: e.g.
its easier to implement mass changes (e.g. typescriptify) if all the functions of the same type have the same prefix hence
located to…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ipavlic
Comment options

@tan75
Comment options

@ipavlic
Comment options

Answer selected by ipavlic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants