Why I don't like implicit string interpolationJune 28, 2012
All (computer) languages of any practical use wind up needing to format
strings somehow. There are many mechanisms for this and you can find
languages that use pretty much any of them, so every so often someone
creating a language will settle on implicit string interpolation as
theirs (this is where you write strings as something like What's wrong with this? In no particular order:
(I have nothing against string interpolation if it must be invoked
explicitly. In fact I quite like things like Python's use of ' There are a very small number of programming languages where the last issue is in fact not the case, where most of the strings are basically formatted output. In these reasonably unusual languages, implicit string interpolation can make sense (if done carefully, because you still have the other issues). But if you are putting together any sort of general purpose language, this almost certainly does not apply. (I'm on the fence if the Bourne shell qualifies, but then the Bourne shell has a number of problems as a language.) Sidebar: The
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |