anoniscoding / yorlang

A programming language with yoruba language construct
https://anoniscoding.github.io/yorlang/
MIT License
450 stars 70 forks source link

feat: add aago helper function #40

Closed mykeels closed 5 years ago

mykeels commented 5 years ago

The aago() function returns an array of [ year, month, day, hours, minutes, seconds, milliseconds ] representing a Date instance.

I think this can be a yorlang's date representation, pending when objects are added to the language.

anoniscoding commented 5 years ago

Thank you very much @mykeels . I'm glad you thought of this

anoniscoding commented 5 years ago

Please can you add test cases for the feature? If so, they should include returning the current date when no parameter is passed

mykeels commented 5 years ago

Test cases have been added

anoniscoding commented 5 years ago

Thank you very much bro. Merged the PR bro. For future cases though, i'll prefer more descriptive variable names. Case in point is the variable d, it could have been date. I prefer to read code like a story. Thanks again