Replies: 1 comment 2 replies
|
Yes correct, const variables are the closest thing, but types themselves cannot be const. This was mainly done to prevent the const combinatorics you get in C++. Const types can work, but I think the language has to heavily buy into them from the start (which Adept 2.0 didn't), and also opt-in mutability would be better to assume const by default. These will be things to consider for Adept 3.0 TL;DR Types themselves can't be const |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a quick read of the document, and it seems the
constkeyword is not even supported. Please correct me if I'm wrong.All reactions