tracker issue : CF-4203272

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

[ANeff] Doc Bug for: "Using closures" doc unrequired arguments

| View in Tracker

Status/Resolution/Reason: To Fix//HaveNewInfo

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

Created: 08/15/2018

Components: Documentation

Versions: 13.0

Failure Type: Others

Found In Build/Fixed In Build: 0 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: / Platforms All

Vote Count: 0

Issue: "Using closures" doc has many code examples that use optional arguments w/o checking for their existence

Suggestion: Make those arguments required

Example Before:
-----------
function helloTranslator(String helloWord) {
  return function(String name) {
    return "#helloWord#, #name#";
  };
}
-----------

Example After:
-----------
function helloTranslator(required String helloWord) {
  return function(required String name) {
    return "#helloWord#, #name#";
  };
}
-----------

Note: There are many code examples on that page needing same fix.

Related URL: https://helpx.adobe.com/coldfusion/developing-applications/the-cfml-programming-language/extending-coldfusion-pages-with-cfml-scripting/using-closures.html

Attachments:

Comments: