Can function argument have hint in cfscript (CF9)?
CFML style:
<cffunction name="myFunc" output="false" returntype="void">
<cfargument name="arg1" type="arg1" default="default" hint="my hint">
...
</cffunction>
CF9 cfscript style:
public void function myFunc(string arg1='default') {
...
}
Where to specify hint of the argument (arg1) above?
The easiest way is to to use JavaDoc notation.
component{
/**
* @hint This is a hint
* @arg1 This is an argument hint
* @arg2 This is another argument hint
*/
public void function myFunc(string arg1='default', numeric arg2) {
return TRUE;
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With