<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1549</bug_id>
          
          <creation_ts>2005-07-11 22:40:46 +0000</creation_ts>
          <short_desc>[FS] editorial: 3.2.3 Static typing judgment</short_desc>
          <delta_ts>2007-01-16 17:24:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Formal Semantics 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Jerome Simeon">simeon</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4508</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-11 22:40:46 +0000</bug_when>
    <thetext>3.2.3 Static typing judgment

&quot;the input literals &apos;3&apos; and &apos;5&apos; have type integer,&quot;
    Delete &quot;input&quot;?

&quot;so the variable $v also has type integer.&quot;
    You don&apos;t need to know that 5 has type integer to infer $v&apos;s type.

&quot;statEnv |- if Expr1 then ...&quot;
    Add parentheses around Expr1

&quot;The &quot;left half&quot; (the part before the :) of the expression below the line&quot;
    Change &quot;expression&quot; to &quot;judgment&quot;.

&quot;corresponds to some [expression/query], for which a type is computed.&quot;
    Well, except that the &quot;statEnv |-&quot; isn&apos;t part of the expression/query.
    Maybe say that the part between the turnstile and the colon
    corresponds to some expression/query.

&quot;The expression usually has patterns in it&quot;
    Change &quot;expression&quot; to &quot;judgment&quot;.

&quot;The expressions above the line&quot;
    Change &quot;expressions&quot; to &quot;judgments&quot;.

&quot;the expressions on each side&quot;
    On each side of what? Maybe just change to &quot;those expressions&quot; (or
    &quot;those sub-expressions&quot;).

&quot;At each point in the recursion, an appropriate matching inference rule is
sought&quot;
    Maybe clarify what an &quot;appropriate matching&quot; rule is. (A rule whose
    conclusion has a structure that matches that of the premise in
    question.)

&quot;if at any point there is no applicable rule, then static type inference
has failed&quot;
    Not quite. It means that that particular avenue of inference has
    failed; however, an alternative avenue might succeed.

    And actually, I think you&apos;ve written the spec so that, if failure
    happens, it shouldn&apos;t be for lack of a matching rule -- that would
    indicate incompleteness of the spec. Instead, failure of (an avenue
    of) inference should only happen when one is unable to satisfy the
    premises of a rule.

    Some of this discussion might fit back in section 2.1.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4509</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-11 23:21:06 +0000</bug_when>
    <thetext>(Also...)

&quot;The overall static type inference algorithm is recursive&quot;
    I don&apos;t think you can call it an algorithm, given that you haven&apos;t
    shown that it terminates, and you haven&apos;t given an effective means to
    to test the subtype relation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8365</commentid>
    <comment_count>2</comment_count>
    <who name="Mary Fernandez">mff</who>
    <bug_when>2006-02-21 20:04:01 +0000</bug_when>
    <thetext>Incorporated all the suggested changes, although I left the changes
in place and did not move any text to 2.1.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12185</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2006-09-29 05:47:12 +0000</bug_when>
    <thetext>&quot;The the part after the : and before |- in the judgment below the line...&quot;

    s/The the/The/

    Swap &quot;:&quot; and &quot;|-&quot;.

    After &quot;before&quot;, insert &quot;the&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12558</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-10-19 23:41:29 +0000</bug_when>
    <thetext>Done.
- Jerome
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>