Feature request: Path append operators for strings
John Colvin
john.loughran.colvin at gmail.com
Tue Jul 2 16:09:29 PDT 2013
On Tuesday, 2 July 2013 at 22:56:00 UTC, TommiT wrote:
> On Tuesday, 2 July 2013 at 22:28:24 UTC, TommiT wrote:
>>
>> I've never thought of it like that. [..]
>
> Boost Filesystem overloads the meaning of / to mean "append to
> path". Boost Exception overloads << to mean "add this info to
> this exception". Boost Serialization overloads << and >> to
> mean serialize and deserialize, and & to mean either one of
> those.
>
> So no wonder I was under the impression that we're allowed to
> overload the meaning of operators.
Such overloads make for code that's fast to write but hard to
read, especially to outsiders. It's a tempting direction, but not
a good one.
More information about the Digitalmars-d
mailing list