You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Over the past few months, I've found myself using almost exclusively macros to define properties. I'm hardly writing any properties simply with computed. The syntax is more declarative and there are no issues with keeping the list of dependencies in sync with the implementation.
For those three reasons, I think that ember-awesome-macros is the superior technical solution for macros for Ember.js users.
However, there can be some confusion now due to the overlap in functionality between the two. For instance, the not macro exists in both packages:
import { not } from '@ember/object/computed';
import { not } from 'ember-awesome-macros';
One is composable, one is not.
Given the confusion, would it make sense to replace the existing @ember/object/computed package with ember-awesome-macros, and thereby "promoting" the latter to an official Ember.js package? Of course, the macros missing in ember-awesome-macros would have to be ported.
The text was updated successfully, but these errors were encountered:
Thanks for writing this up! I think this is more of an RFC in the works than a bug (which is what we generally like to track here in the issue tracker). Would you mind opening this as an issue in emberjs/rfcs repo instead?
Over the past few months, I've found myself using almost exclusively macros to define properties. I'm hardly writing any properties simply with
computed
. The syntax is more declarative and there are no issues with keeping the list of dependencies in sync with the implementation.In doing so, I've been using mostly the ember-awesome-macros addon instead of the macros defined in @ember/object/computed. Three reasons:
ember-awesome-macros
are composable which avoids having to name intermediate properties.intersection
), all macros in@ember/object/computed
are also available inember-awesome-macros
.For those three reasons, I think that
ember-awesome-macros
is the superior technical solution for macros for Ember.js users.However, there can be some confusion now due to the overlap in functionality between the two. For instance, the
not
macro exists in both packages:One is composable, one is not.
Given the confusion, would it make sense to replace the existing
@ember/object/computed
package withember-awesome-macros
, and thereby "promoting" the latter to an official Ember.js package? Of course, the macros missing inember-awesome-macros
would have to be ported.The text was updated successfully, but these errors were encountered: