from2ality1 day agoNode JSConverting values to strings in JavaScriptOnly {}.toString.call(v) works reliably for all tricky values in JavaScript string conversion.Using String(v) is a simpler alternative when full reliability isn't essential.
fromArmin Ronacher's Thoughts and Writings1 month agoScalaBridging the Efficiency Gap Between FromStr and StringThe FromStr trait is efficient but can lead to unnecessary clones when working with String.