On Wednesday, 5 October 2016 at 16:57:42 UTC, Rory McGuire wrote:
On Wed, Oct 5, 2016 at 5:32 PM, angel via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote:
[...]
Really, why do we need a _body_ ?
We have pre-condition and post-condition (in and out),
everything else is
a body.
It is simply inconsistent - a regular function with no in and
out blocks
has no body block. Now one adds a pre-condition (and / or
post-condition) -
whoop - one needs to wrap the whole function body ... well in
a body
expression.
Recently I've had to use scope_ a lot more often than body_ but
reserved keywords are really annoying, so the less we have the
better :D
Agreed - I have exactly the same problem with "version", which is
also really common for, well, to hold a version number of a
component. Body is annoying too.
But, can keywords actually sanely be removed from the language
without breaking the world?