rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

Deprecate the `helper` wrapper function coming from `@ember/component/helper`

Open bertdeblock opened this issue 4 months ago • 1 comments

Motivation:

Are there any reasons to keep it around that I might be missing?

bertdeblock avatar Sep 27 '25 07:09 bertdeblock

there is one reason to maybe keep it around:

  • helper() is the only utility we have right now for allowing lazily consumed arguments to a function-ish helper

that is, regular functions' trackedness is all consumed upon evaluation of the function -- where as with helper(), you only track what is used in the helper().

is that enough of a reason to keep helper() around? idk

Does it cost us much to keep around? not really.

Could there be a perf difference between helper() and plain functions? maybe -- I'd love to see some analysis on this

NullVoxPopuli avatar Nov 17 '25 18:11 NullVoxPopuli