3 ms·
So you can write "let x:const = 5"? if "const" is a type.
by EugeneOZ 8y ago
So you can write "let x:const = 5"? if "const" is a type.
- leshow 8y agoYou were just told the formatting removed the asterisk. const isn't a type, but a const pointer is, so is a mut pointer. It says so in the book AND it's in the position of a type in the code. What other information do you need to convince you that you're wrong?