[GH-ISSUE #1100] Not Really a issue just need help understanding #801

Closed
opened 2026-03-04 01:07:50 +03:00 by kerem · 1 comment
Owner

Originally created by @devdutt6 on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1100

Image

Why there was a IIFE created in the loop, I mean the code works fine without it but I'm asking to understand if I'm missing something. Is it just un-necessary or it is there due to very specific reason.

Originally created by @devdutt6 on GitHub (Jun 25, 2025). Original GitHub issue: https://github.com/rivo/tview/issues/1100 <img width="1470" alt="Image" src="https://github.com/user-attachments/assets/705a2d17-14e7-4083-9aa4-30f299eeea64" /> Why there was a IIFE created in the loop, I mean the code works fine without it but I'm asking to understand if I'm missing something. Is it just un-necessary or it is there due to very specific reason.
kerem closed this issue 2026-03-04 01:07:50 +03:00
Author
Owner

@rivo commented on GitHub (Jun 26, 2025):

It works fine since Go 1.22 but not before. See https://tip.golang.org/doc/go1.22#language for details.

It seems that many tview users are still on old Go versions so this has not yet been changed.

<!-- gh-comment-id:3009018946 --> @rivo commented on GitHub (Jun 26, 2025): It works fine since Go 1.22 but not before. See https://tip.golang.org/doc/go1.22#language for details. It seems that many `tview` users are still on old Go versions so this has not yet been changed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#801
No description provided.