Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
import selectors
type
Data = object
a: string
var s = newSelector[Data]()
while true:
var ready = s.select(-1)
prog.nim(10, 16) template/generic instantiation from here
lib/pure/ioselects/ioselectors_epoll.nim(478, 25) template/generic instantiation from here
lib/pure/ioselects/ioselectors_epoll.nim(389, 38) Error: undeclared field: 'OSErrorCode'
see result: https://wandbox.org/permlink/HBffIEUCzjkPaHpV