To Recurse vs Recursing Infinitives & Gerunds

📝

Notes from a Native English Speaker

Infinitives: An infinitive is the base form of a verb, usually preceded by the word "to" (e.g., to swim, to eat, to learn). It can function as a noun, adjective, or adverb in a sentence. Infinitives are often used to express intentions, purposes, desires, or potential actions. Gerunds: A gerund is the -ing form of a verb (e.g., swimming, eating, learning). It’s different from a “present participle” which functions as a verb tense. A gerund can be the subject, object, or complement of a sentence.

When and How to Use Each Expression?

Get a sense of when and how each expression can be used through the following examples!

To recurse (Infinitive)

Purpose or Intention: Use the infinitive "to recurse" when you want to express a purpose, intention, desire, or potential action

Example

I want to recurse through the directories to find the file.

Recursing (Gerund)

Activity or Experience: Use the gerund "recursing" when you want to refer to the activity itself or the experience as a noun.

Example

Recursing through the directories can be time-consuming.

Where can infinitives/gerunds be placed in a sentence?

To recurse (Infinitive)

  • 1Subject

    To recurse through the directories requires a recursive function.

    To recurse through the directories requires a recursive function.

    • "*To recurse* through the directories" serves as the subject of the sentence.
    • Infinitive phrase (subject) + verb (requires) + noun phrase (a recursive function).
  • 2Object

    She wants me to recurse through the files.

    She wants me to recurse through the files.

    • "Me *to recurse* through the files" is the object of the verb "wants."
    • Noun (She) + verb (wants) + noun phrase (me *to recurse* through the files).
  • 3Adjective Modifier

    I need a program to recurse through the folders.

    I need a program to recurse through the folders.

    • "*To recurse* through the folders" modifies the noun "program."
    • Noun (I) + verb (need) + noun phrase (a program *to recurse* through the folders).

Recursing (Gerund)

  • 1Subject

    Recursing through the directories is a common programming technique.

    Recursing through the directories is a common programming technique.

    • "*Recursing* through the directories" is the subject of the sentence.
    • Gerund (subject) + verb (is) + noun phrase (a common programming technique).
  • 2Object

    I enjoy recursing through the files.

    I enjoy recursing through the files.

    • "*Recursing* through the files" is the object of the verb "enjoy."
    • Noun (I) + verb (enjoy) + gerund (*recursing* through the files).
  • 3Object of Preposition

    She has a passion for recursing.

    She has a passion for recursing.

    • "For *recursing*" is the object of the preposition "for."
    • Noun phrase (She) + verb (has) + noun phrase (a passion for *recursing*).

Verbs Taking Infinitives/Gerunds as Objects

The following are verbs that can take only the base form of the verb (infinitive), only the -ing form (gerund), or both.

Verbs Taking Infinitives as Objects

Example

She plans to recurse through the data tomorrow.

They hope to recurse without any errors.

He wants to recurse through the entire database.

We decided to recurse through the code for optimization.

They agreed to recurse through the files together.

Verbs Taking Gerunds as Objects

Example

She enjoys recursing through the code every day.

They recommend using a recursive approach for recursing through the directories.

I dislike the idea of recursing through large datasets.

He avoids recursing in infinite loops.

Can you imagine yourself recursing through complex algorithms?

Verbs Taking Both Infinitives and Gerunds as Objects

Example

She likes to recurse through the files. She likes recursing through the files.

We started to recurse the directories. We started recursing the directories.

He began to recurse through the folders. He began recursing through the folders.

This content was generated with the assistance of AI technology based on RedKiwi's unique learning data. By utilizing automated AI content, we can quickly deliver a wide range of highly accurate content to users. Experience the benefits of AI by having your questions answered and receiving reliable information!