tracker issue : CF-4184601

select a category, or use search below
(searches all categories and all time range)
Title:

Addition of cfc inline property default values

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Ryan Hinton / Ryan Hinton (Ryan Hinton)

Created: 08/27/2016

Components: CFComponent

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 3

Allow for an inline default value when using script attribute-less property.

Example:

component {

// proposed inline default value
property [type] thisPropertyName [= defaultvalue];

}

Currently, we are forced to use attributes to include a property default value to be inline.
property name="thisPropertyName" type="string" default="some value";

or we must use the JavaDoc notation with 
/** @Default some value */
property string thisPropertyName

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4184601

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name: Ryan Hinton
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Please also look at this, as "property" needs more improvement than just this mention. It would be great if they can both be hammered out together. https://bugbase.adobe.com/index.cfm?event=bug&id=CF-4182565
Comment by External U.
1950 | August 27, 2016 10:16:25 AM GMT
It does seem to beggar belief this is not already the syntax in the language.
Vote by External U.
1951 | August 28, 2016 07:58:45 AM GMT