Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #173758

Re: C vs Haskell for XML parsing

From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c
Subject Re: C vs Haskell for XML parsing
Date 2023-09-03 03:55 -0700
Organization None to speak of
Message-ID <8734zv7cgb.fsf@nosuchdomain.example.com> (permalink)
References (16 earlier) <ucjei2$1tv7s$1@dont-email.me> <20230828182115.305@kylheku.com> <uckeel$26q6m$1@dont-email.me> <uckumo$29oe0$1@dont-email.me> <875y4xboly.fsf@nosuchdomain.example.com>

Show all headers | View raw


Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
> David Brown <david.brown@hesbynett.no> writes:
> [...]
>> Being able to accept $ in identifiers is a convenient extension.
>
> Quibble: $ in identifiers is not an extension as specified in section 4
> of the standard.  Starting in C99, the set of characters accepted in
> identifiers is implementation-defined.  (I'm not sure what difference
> that makes.)

On further thought, there is a significant difference.

An implementation that supports $ in identifiers via an via the
"other implementation-defined characters" wording in the syntax
of an identifier can accept foo$bar as an identifier without
issuing a diagnostic.  If it's an extension as defined in section 4
(Conformance) of the standard, it can accept foo$bar but it must
still issue a diagnostic (presumably a non-fatal warning).

(That's in conforming mode, of course.  The standard has nothing to say
about non-conforming modes.)

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */

Back to comp.lang.c | Previous | NextNext in thread | Find similar


Thread

Re: C vs Haskell for XML parsing Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-09-03 03:55 -0700
  Re: C vs Haskell for XML parsing Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-09-03 11:44 -0700
    Re: C vs Haskell for XML parsing Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-09-03 16:20 -0700
      Re: C vs Haskell for XML parsing Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-09-03 16:47 -0700
        Re: C vs Haskell for XML parsing Richard Damon <Richard@Damon-Family.org> - 2023-09-03 17:24 -0700
        Re: C vs Haskell for XML parsing Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2023-09-03 17:26 -0700

csiph-web