1

In an academic text, I need to explain a section of a computer program. This section extends from line 10 to line 15 in the code. Is the following way to refer to these lines gramatically correct?

  • The scopes of the two declarations overlap from lines 10 to 15.

Or should I use one of these alternative forms:

  • The scopes of the two declarations overlap from line 10 to line 15.
  • The scopes of the two declarations overlap in lines 10 to 15.
  • Any other possibility?...

Because this need appears frequently in the text, this is not just a matter of choosing the safest approach. I woul like to know what is correct and what is not so that I can use some variation trhoughout the text.

1
  • The two declarations have scopes that overlap ... Commented Sep 21, 2015 at 12:32

3 Answers 3

2

I would definitely go with one of the latter two choices you gave. Personally, I prefer it with in.

Your first example causes me to group 10-15 as a single entity and I parse it as follows (lacking elements shown in parenthesis, glosses underneath):

    from     |   lines 10 to 15   |       (to)        |  (somewhere else)
starting at  |  around this area  |  (and ending at)  |  (this place)
1

Drop overlaps. Use is.

  • The scope of the declarations is from line 10 to line 15, inclusive.

  • The scope of the declarations is lines 10 to 15, inclusive.

The inclusive is not necessary for the second one, but it doesn't hurt. It is important for the first one, because to can be ambiguous.

4
  • True about the use of to; I think I got that covered because I am explaining a figure where this is clearly visible (it does mean inclusive in this case). But the scope of each declaration is larger than lines 10 to 15, this is just the range over which they overlap. Do you think the suggestions in the answer still apply?
    – rick
    Commented Oct 13, 2014 at 1:14
  • @rick I'd probably go for something like "The two declarations' scopes overlap..." to make it clear that there are two different scopes. Commented Oct 13, 2014 at 1:21
  • @guifa: Ah, yes, if that is the case. I didn't understand that from the OP. If there are two different scopes then it is appropriate to talk about either their overlap or their intersection. In that case, it is The scopes of the declarations overlap for lines 10 to 15. IOW, plural scopes.
    – Drew
    Commented Oct 13, 2014 at 1:23
  • Intersection will also help add some variation, thanks a lot!
    – rick
    Commented Oct 13, 2014 at 3:02
1

I find "The scopes of the two declarations" a bit unwieldy as a subject. It is especially awkward with the verb overlap, since overlap is more often a noun, so you can get a bit of a garden path. Another possibility is to use just "the two declarations" (or similar) as the subject, with "in scope" (or similar) as a predicate. "In scope" is also a bit more flexible in that it allows you to specify a certain range or location, while still leaving it clear that the total scope of the declaration extends beyond that range.

So, for example, you might write any of these:

  • From line 10 to line 15, the two declarations are both in scope.
  • Both declarations are in scope from line 10 to line 15.
    • or Both declarations are in scope in lines 10–15.
  • The two declarations have overlapping scopes (lines 10–15).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .