Does D have too many features?

H. S. Teoh hsteoh at quickfur.ath.cx
Sun Apr 29 19:15:21 PDT 2012


On Sun, Apr 29, 2012 at 01:23:17PM +0200, Timon Gehr wrote:
> On 04/29/2012 11:31 AM, foobar wrote:
> >On Sunday, 29 April 2012 at 08:58:24 UTC, Timon Gehr wrote:
[...]
> >>It is not. For example, code that is only executed during CTFE does
> >>never have to behave gracefully if the input is ill-formed.
> >
> >I disagree - you should make sure the input is valid or all sorts of
> >bad things could potentially happen such as a compiler can get stuck
> >in an infinite loop.
> 
> It could fail in a number of other ways. I don't think that this
> example can be used to invalidate the statement.

Like if the Ackermann function was evaluated in CTFE for very large
arguments. Technically it isn't an infinite loop, but you probably
wouldn't like the results.


T

-- 
If I were two-faced, would I be wearing this one? -- Abraham Lincoln


More information about the Digitalmars-d mailing list