Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9850

[Go] Defer should not be used in the loop

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0.0
    • 2.0.0
    • Go

    Description

      As is described in the second section in https://blog.learngoprogramming.com/gotchas-of-defer-in-go-1-8d070894cb01

       

      defer inside the loop may cause unforeseen problems.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fredgan FredGan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h