DIP 1027---String Interpolation---Community Review Round 1

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Dec 17 17:27:36 UTC 2019


On Tue, Dec 17, 2019 at 05:37:53AM +0000, Jab via Digitalmars-d wrote:
> On Monday, 16 December 2019 at 22:48:30 UTC, mipri wrote:
[...]
> >   $db->query("INSERT INTO names VALUES (?)", "Bob");
> 
> This would push the complexity onto the query implementation. As now
> it has to be able to parse the string.
[...]

The database engine *already* does this.  It's standard SQL syntax, and
you don't have to write a single bit of code to make this work, just
hand it off to the database backend and your job is done.


T

-- 
"640K ought to be enough" -- Bill G. (allegedly), 1984. "The Internet is not a primary goal for PC usage" -- Bill G., 1995. "Linux has no impact on Microsoft's strategy" -- Bill G., 1999.


More information about the Digitalmars-d mailing list