property syntax strawman

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Aug 3 07:45:10 PDT 2009


Michiel Helvensteijn wrote:
> Andrei Alexandrescu wrote:
> 
>>> auto data = std.file.readText(filename).chomp.split;
>> I love that too. Unfortunately, the way the water is moving, it looks
>> like we'll lose some or all of that.
> 
> That's not really true. Some of those no-parameter functions are just meant
> to be read-only properties instead of functions.
> 
> auto data = std.file.textFrom(filename).chomped.split;

Sure you meant:

auto data = std.file.textFrom(filename).chomped.splat;

:o)


Andrei



More information about the Digitalmars-d mailing list