3 ms·
Does $() a semantics requirement from TS/JS? Any chance for a better/meaningful name?
by huydotnet 7y ago
Does $() a semantics requirement from TS/JS? Any chance for a better/meaningful name?
- 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