Is it acceptable to not parse unittest blocks when unittests are disabled ?
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Thu Mar 30 10:22:20 PDT 2017
On Thursday, 30 March 2017 at 14:28:41 UTC, deadalnix wrote:
> On Wednesday, 29 March 2017 at 19:32:50 UTC, Vladimir Panteleev
> wrote:
>> Sorry, is this not already the case?
>>
>> $ dmd test.d
>> $ cat test.d
>> void main()
>> {
>> import std.stdio;
>> writeln("Hello, world!");
>> }
>>
>>
>> unittest
>> {
>> foo bar {} baz more-syntax!errors)blah
>> }
>> $ dmd test.d
>> $ ./test
>> Hello, world!
>
> Alright then, it looks like it is :)
>
> I was asking for SDC.
SDC has the goal to be more principled.
And Not to be Mr. fast and loose, right ?
If a file parses it'd better be syntactically correct!
All of it.
More information about the Digitalmars-d
mailing list