On Tuesday, 30 January 2018 at 11:36:25 UTC, Jonathan M Davis
wrote:
[nope]
Thanks. It's what I thought, though not what I wanted.
IIRC, the Weka guys wanted to be able to have attributes tell
the compiler stuff so that it could yell at the programmer when
appropriate, so I think that there is some interest in this
area, but I have no idea how such a thing would be implemented.
New built-in attributes that warn about specific stuff could
certainly be added, but in each case, there would have to be a
solid enough argument as to why it was worth adding that
further complication to the language. I have no idea what the
chances of being accepted would be for a DIP specifically for
an attribute to warn if the return value is ignored, but you
can certainly create such a DIP if you feel strongly enough
about it and feel that you can argue it well.
It's been on my mind for years, so it probably will happen
eventually. Can't promise this is the year, though.
--
Simen