WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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
This means every function can be called from an immutable / pure context
Note: ToArray will fail psalm on this commit as (rightfully) there is an impure psalm issue
This commit is a bit of a lie to psalm: Psalm is correct that our object is not actually immutable / pure.
But is if you remove caching.
This lie seems tolerable (despite how bad a practice overriding the typechecker is) because the mutation is entirely memoization.
0 commit comments