[fpc-pascal] Food for thought - language string improvement
Karoly Balogh (Charlie/SGR)
charlie at scenergy.dfmk.hu
Thu Jul 6 16:35:49 CEST 2017
Hi,
On Thu, 6 Jul 2017, Graeme Geldenhuys wrote:
> Imagine if FPC had type inference and multi-line strings, neither very
> exotic features. The code then becomes:
>
> =========================================
> var query := '''SELECT Customers.CustomerName, Orders.OrderID
> FROM Customers
> FULL OUTER JOIN Orders
> ON Customers.CustomerID = Orders.CustomerID
> ORDER BY Customers.CustomerName;'''
>
> FDQuery1.SQL.Add(query);
> =========================================
>
> Easier to read, easier to edit, no need for a IDE wizard or external
> tools.
>
> Language features like this is what increases productivity.
Stuff like this looks almost as bad to me, as PHP intermixed with HTML and
Javascript. But sure, web devs are well known for their productivity... :P
(And I'm quite conservative on such things, so ignore me. :) )
Charlie
More information about the fpc-pascal
mailing list