Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Adam Tuttle / Adam Tuttle (Adam Tuttle)
Created: 02/16/2015
Components: Language
Versions: 2018
Failure Type: Usability Issue
Found In Build/Fixed In Build: CF11_Final / 2018.0.0.306128
Priority/Frequency: Major / Most users will encounter
Locale/System: ALL / Platforms All
Vote Count: 9
The only date member functions that require the "date" prefix in the method name are: date.dateFormat(), date.timeFormat(), and date.dateTimeFormat()... All other date member functions have dropped the "date" prefix.
Compare this to arrays, where all member functions have dropped the "array" method name prefix.
I understand that this was probably a decision made to support all three functions... but think about it: Is that really necessary? dateTimeFormat does everything that dateFormat and timeFormat can do.
I propose a single date.format() method that implements the same masking as dateTimeFormat, and that you DROP support for date.dateFormat, date.timeFormat (and of course, date.dateTimeFormat).
Rip this band-aid off now before people's code becomes littered with it!
The only time I think method name type-prefixes are acceptable are in the case of list functions, because lists are not a type, they are just strings with implied context.
Indeed, excusing the list functions, this date/time/dateTimeFormat debacle is the ONLY (documented: https://wikidocs.adobe.com/wiki/display/coldfusionen/Using+the+member+functions) case where the "date" prefix was kept. Let's get rid of it now while we still can!
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3940802
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: N/A
Attachments:
Comments: