date-utils icon indicating copy to clipboard operation
date-utils copied to clipboard

How do you feel about... ?

Open jonstorer opened this issue 11 years ago • 1 comments

Jerry,

How do you feel about extending other object's and their prototypes? Specifically, I would love to have:

1.month.from_now.getMonthName();
// or
1.month.from_now.MonthName();
// since you can't really set the month name

How do you feel about that? I think it would be a good approach to help with the #addDays issues I've seen added in the past few months.

Thoughts?

jonstorer avatar May 29 '13 21:05 jonstorer

Hm. for some reason i thought that i had answered this a while back, maybe i didn't hit the "comment' button - sorry!

i think it would be awesome, but i already feel bad about monkey-patching Date, going so far as to patch Number as well might be a little much. it might be interesting to have it as an add-on, but i don't think i'd feel good about it being in the core module.

in return, how do you feel about addon modules? i think there's a lot of room for something like this in 2.0.

JerrySievert avatar Oct 19 '13 00:10 JerrySievert