2 ms·
$ is just an ordinary JS name. It almost, sort of makes sense here in the builder because $ is also the Regex symbol for "end of string". But other names could
by WorldMaker 7y ago
$ is just an ordinary JS name. It almost, sort of makes sense here in the builder because $ is also the Regex symbol for "end of string". But other names could be possible, they just likely won't be as short to be meaningful.
(`buildString()` or `toClassnames()` are two common forms of names I've seen in these sorts of "fluent" APIs for finalizers/builders.)
- dvkndn3 7y ago`toString()` actually works here :D