[fpc-pascal] Food for thought - language string improvement
Marco van de Voort
marcov at stack.nl
Thu Jul 6 18:52:40 CEST 2017
In our previous episode, Graeme Geldenhuys said:
>
> 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;'''
''' already has meaning, you'll see that
var s : ansistring;
begin
s:='''text''';
end.
already compiles now.
More information about the fpc-pascal
mailing list