tracker issue : CF-4203272

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

[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: 2018

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: