On Thu, 6 Jul 2017, Sven Barth via fpc-pascal wrote:
On 06.07.2017 16:13, 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.
Completely ignoring the type inference which I'm definitely not a fan of
- at least not in Pascal: In my opinion it would be better to improve
and finalize the $IncludeStringFile patch from issue #25536 (
https://bugs.freepascal.org/view.php?id=25536 ).
Sven,
What stops us from applying the patch ?
It has been in Mantis for ages.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal