Is there something like a Python 'pass' statement in Nim

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?

+5
source share
1 answer

discard does the same in Nim:

 proc foo = discard # skip detail type Bar = object 

For objects, it’s optional, but possible to specify discard

+3
source

Source: https://habr.com/ru/post/1274733/


All Articles