[OT] C# can do all the interpolated strings now
Steven Schveighoffer
schveiguy at gmail.com
Fri Dec 10 01:00:57 UTC 2021
On 12/9/21 5:42 PM, forkit wrote:
> Well, for me, the first example you presented is so much more readable:
>
> i.e.
>
> conn.exec("UPDATE organization SET loc_lat = ?, loc_lon = ? WHERE id =
> ?", loc_latitude, loc_longitude, id);
>
> My brain straight away looks for that comma, and I immediately see what
> the parameters are.
Which comma? there are commas in the string too. You have to parse the
string first to find the right comma.
> The other way, I have to read and parse the ENTIRE string!
So you just ignore the string? What if there are parameter mismatches?
-Steve
More information about the Digitalmars-d
mailing list