yannickl / YLMoment

Parsing, validating, manipulating, and formatting dates easily in Objective-C (API inspired by moment.js)

Home Page:http://yannickl.github.io/YLMoment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The NS prefix should only be used by Apple.

pablasso opened this issue · comments

May not seem like a big issue, but it is. Per Apple docs:

You’ll have noticed that Cocoa and Cocoa Touch class names typically start either with NS or UI. Two-letter prefixes like these are reserved by Apple for use in framework classes.

[..]

Your own classes should use three letter prefixes.

Ah yes indeed! I wanted use the NS prefix to fit the .js equivalent of the moment.js library.

What do you propose as an alternative? NSMMoment? YLMoment?

Oh that's entirely up to you, that's the prize for creating a cool library :) YLMoment sounds cool!

YLMoment works 😄