You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var# Declare (and assign) variables,
letter: char='n'# with or without type annotationslet# Use let to declare and bind variables *once*.
legs =400# legs is immutable.const# Constants are computed at compile time. This provides
debug =true# performance and is useful in compile time expressions.
it's very unclear to me as a complete ignorant about the language (but not ignorant about many others) what let is vs const?
to me immutable literal is no different than a constant, what am I missing? (and/or how is it different from var ?)
maybe a better example would be
let
legs =someFunction()
const
clegs =42
?
The text was updated successfully, but these errors were encountered:
https://learnxinyminutes.com/docs/nim/
it's very unclear to me as a complete ignorant about the language (but not ignorant about many others) what let is vs const?
to me immutable literal is no different than a constant, what am I missing? (and/or how is it different from var ?)
maybe a better example would be
?
The text was updated successfully, but these errors were encountered: