This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
The other day I was reading the source code of a LRU Cache implementation in Javascript and I noticed that the author was defining some variables using ES6 Symbols : const LENGTH_CALCULATOR = Symbol ( 'lengthCalculator' ) const ALLOW_STALE = Symbol ( 'allowStale' ) const MAX_AGE = Symbol ( 'maxAge' ) const DISPOSE = Symbol ( 'dispose' ) const NO_DISPOSE_ON_SET = Symbol ( 'noDisposeOnSet' ) I’ve…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.