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
In PR 4180 @shicks said "goog.reflect.cache is also obsoleted by @pureOrBreakMyCode, which can now be used instead of special-purpose caching primitive."
I can't find documentation for this annotation anywhere. How are you supposed to use it to replace calls to goog.reflect.cache? Would it be sufficient to add this into the body of goog.reflect.cache or a similar method, or would the callers need the annotation?
The text was updated successfully, but these errors were encountered:
I second this. A well documented and thought-out @pureOrBreakMyCode would be an awesome addition to GCC.
By looking at the java code, it appears that currently @pureOrBreakMyCode is used for removing function calls whose return value is not used (even though i could not trigger this with js examples).
However it would be great if GCC can also constant propagate through @pureOrBreakMyCode annotated functions. This would give a users a tool maybe as powerful as zigs comptime.
Just a simple example: build time dictionary trimming
In PR 4180 @shicks said "goog.reflect.cache is also obsoleted by @pureOrBreakMyCode, which can now be used instead of special-purpose caching primitive."
I can't find documentation for this annotation anywhere. How are you supposed to use it to replace calls to goog.reflect.cache? Would it be sufficient to add this into the body of
goog.reflect.cache
or a similar method, or would the callers need the annotation?The text was updated successfully, but these errors were encountered: