tracker issue : CF-4152476

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

[ANeff] ER for: literal syntax for sorted structs

| View in Tracker

Status/Resolution/Reason: To Fix//HaveNewInfo

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 05/12/2016

Components: Language

Versions: 2016

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 2

4126544 "Object Literal Syntax for Ordered/Sorted Structs" is marked "Fixed", but there is no literal syntax for sorted structs.

This ticket is to cover literal syntax for sorted structs.

Please read: http://blog.adamcameron.me/2016/05/cfml-yes-shut-up-sorted-struct-literal.html

Current ideas from that post and comments:

1) sortedStruct = [key=value, key=value, struct|callback]
2) sortedStruct = [key=value, key=value](struct|callback)
3) sortedStruct = {[key=value, key=value], struct|callback}
4) sortedStruct = {[key=value, key=value, struct|callback]}
5) sortedStruct = [key=value, key=value] @ struct|callback

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

Watson Bug ID:	4152476

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:

Attachments:

Comments:

My current preference is #2: sortedStruct = [key=value, key=value](struct|callback) Thanks!, -Aaron
Comment by External U.
2836 | May 13, 2016 12:01:15 AM GMT
Some important notes from Adam's post: 1) "struct" refers to the configuration struct. Example: {direction="ASC|DESC", on="key|value", type="text|numeric", caseSensitive=boolean(false), locale="fr_FR"} 2) The locale parameter should accept locale name (as shown above) Thanks!, -Aaron
Comment by External U.
2837 | May 13, 2016 12:05:40 AM GMT
Hi Adobe, Related ticket: CF-4153055 (ER for: literal syntax for unsynchronized array). Please ensure the fix for both of these tickets has a similar syntax. Please let us know your plans for both tickets, before fixing either one. Thanks!, -Aaron
Comment by Aaron N.
2838 | March 08, 2018 11:47:44 PM GMT