I am new to Nim programming. when I use Python, I can use "pass" to skip the detail of the definition of the function and class.
def foo(): pass # skip detail class Bar(): pass
Is there something like this in Nim?
discard does the same in Nim:
discard
proc foo = discard # skip detail type Bar = object
For objects, itβs optional, but possible to specify discard
Source: https://habr.com/ru/post/1274733/More articles:Can I extend files to create dockers? - dockerasp.net mvc windows authentication - users are logged in as different users - asp.net-mvcInheriting or nesting with docker - docker-composeJava 8 DateTimeFormatter with optional part - timeWeb security. Am I protecting my REST api correctly? (node.js express) - securityPerl 6 udp socket: how to read response from server? - perl6Rear-end password encryption and hashing - securityJava regular expression to prevent SQL injection - javaExtract array of DSI arrays from an instance of a dmapped array? - arraysCan any currently supported Microsoft language create a VB6 Active X EXE? - vb.netAll Articles