Re: [tap] Parse error vs failure

Ovid <publiustemp-tapx@yahoo.com> Sun, 01 February 2009 13:37 UTC

Return-Path: <tap-bounces@ietf.org>
X-Original-To: tap-archive@ietf.org
Delivered-To: ietfarch-tap-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 20E9A3A68C4; Sun, 1 Feb 2009 05:37:06 -0800 (PST)
X-Original-To: tap@core3.amsl.com
Delivered-To: tap@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6741F3A68F0 for <tap@core3.amsl.com>; Sun, 1 Feb 2009 05:37:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sMJvP54Y+cP4 for <tap@core3.amsl.com>; Sun, 1 Feb 2009 05:37:04 -0800 (PST)
Received: from web65707.mail.ac4.yahoo.com (web65707.mail.ac4.yahoo.com [76.13.9.99]) by core3.amsl.com (Postfix) with SMTP id 76FCC3A687A for <tap@ietf.org>; Sun, 1 Feb 2009 05:37:04 -0800 (PST)
Received: (qmail 21726 invoked by uid 60001); 1 Feb 2009 13:36:45 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=c4fEVn9VJ49zC2/7dPs86ap77dqx6+l7J9ynmDtHaaZ/RYeDY+yp7yYdX6gycHAkw8zD4OhOEE22bw2mSv8guLVXDYrh6qO2q0+7X9ZHPX6Yue3heNkBOj+JXypxmrj9kmFNHnUy0Aunk08+GNT1ptlLrSeYpalMxV/s7xvkk/0=;
X-YMail-OSG: b1BS61oVM1lDBIYu1.FB9r7V99ZKyVjxhs2bo5PEvxmsBgcnCgOFXlWDySiTZe7tkkajNX5zRsnSiTr7eLKvfe.poMvIotdP9AO4oMOkoTIaaqxRsPB4o2iAQjIQ6tgKxA1xTXch9r0fwep8D5sNvYZxaiBNNWEOuPYoSBoq4HQpz83VWNU2LhVowcX4unAjh5rVpTogROa_4PDCTQ--
Received: from [82.153.209.174] by web65707.mail.ac4.yahoo.com via HTTP; Sun, 01 Feb 2009 05:36:45 PST
X-Mailer: YahooMailRC/1155.45 YahooMailWebService/0.7.260.1
References: <4984B200.6060907@pobox.com>
Date: Sun, 01 Feb 2009 05:36:45 -0800
From: Ovid <publiustemp-tapx@yahoo.com>
To: Michael G Schwern <schwern@pobox.com>, tap@ietf.org
MIME-Version: 1.0
Message-ID: <439925.21633.qm@web65707.mail.ac4.yahoo.com>
Subject: Re: [tap] Parse error vs failure
X-BeenThere: tap@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Test Anything Protocol WG discussions <tap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tap>, <mailto:tap-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/pipermail/tap>
List-Post: <mailto:tap@ietf.org>
List-Help: <mailto:tap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tap>, <mailto:tap-request@ietf.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tap-bounces@ietf.org
Errors-To: tap-bounces@ietf.org

----- Original Message ----

> From: Michael G Schwern <schwern@pobox.com>

> In Oslo, when we came across an edge case that was considered nonsense, the
> tendency was to say that its a parse error.  For example, "not ok 4 # SKIP",
> because why would you fail a test that didn't run?  Also "1..0" without a
> skip, because why would you not run any tests and yet not skip the test?

Your arguments made sense, but I have a question:  what does 'not ok 4 # SKIP' even mean?  To my mind, that's a parse error because something has gone horribly wrong or the person writing the TAP producer is terribly confused.  There's no way the parser can understand what the intent is, so making it a parse error makes sense to me because if *I* can't parse it, how can a TAP consumer?

I know I'm the odd man out here and I don't feel strongly enough about this to fight it :)

 
Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
_______________________________________________
tap mailing list
tap@ietf.org
https://www.ietf.org/mailman/listinfo/tap