So I was reading through some ColdFusion code and I ran across a function that had the dollar sign in front of it so $myFunction
. I would like to know if this is some ColdFusion convention if not then what is the purpose of using such a coding style?
Asked
Active
Viewed 475 times
3
-
Click on the [code](http://stackoverflow.com/questions/5155929/coldfusion-converting-form-values-into-a-struct/5163541#5163541) link – John Nov 16 '11 at 14:12
-
3I think it's just the style the user used. I don't care for it myself. – Raymond Camden Nov 16 '11 at 14:38
-
2I think it's a naming convention. Like using $functionname() where functionname() is an internal function of a class. I once used code where $-suffix indicated that the function returned a string instead of the non-suffixed function that returned an object, like address$() and address() – jan Nov 16 '11 at 14:49