Title:
arraynew[type](params) vs object[method](params)
|
View in Portal
<p>Hi all, Aether has 3 typed-array creation syntaxes: 1) ArrayNew(dataType=____) 2) [dataType][] 3) ArrayNew[dataType](params) Long-time community ask is for method invocation syntax object[method](params). See its conflict w/ #3? Lucee isn’t implementing #3 b/c it conflicts w/ their object[method](params) support. Proposal: A) Remove #3 or B ) replace it w/ ArrayNew(dimension[, dataType]) Possible conflicts: 1) ArrayNew(dimension[, dataType]) conflicts w/ ArrayNew(dimension[, isSynchronized]) if dataType is a CFC named true.cfc or no.cfc, for example 2) object[method](params) conflicts w/ ArrayNew[dataType](params) if object is a […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2018/06/arraynewtypeparams-vs-objectmethodparams/">arraynew[type](params) vs object[method](params)</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Comments: