Hacker News new | ask | show | jobs
by EugeneOZ 2878 days ago
So you can write "let x:const = 5"? if "const" is a type.
1 comments

You 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?