How to use assert in V repl #19602
-
Hey Guys, I'm still having version 0.4 and reading the documentation about assert I found some code that I tried in repl, but it fails to run:
Does that mean that the assert keyword can't be used in repl, or Am I doing something wrong? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
JalonSolov
Oct 19, 2023
Replies: 2 comments 3 replies
-
The REPL is very limited, and does not work as most people think. You are better off either writing the code in a .v file, or using the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SebastianMpl
-
@JalonSolov in this case it has nothing to do with REPL, this is simply incorrect V:
assert is not an expression |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The REPL is very limited, and does not work as most people think. You are better off either writing the code in a .v file, or using the
-e
option on the command line.