We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Example:
type MyObj = object id: int = generateUniqueId() x: int = 42 stuff: seq[string] = @[]
I can think at least the following benefits:
newMyObj
initMyObj
proc doSomethingGeneric[T](): T = assert result.x == 42 assert result.stuff != nil discard doSomethingGeneric[MyObj]()