Hacker News new | ask | show | jobs
by leshow 2874 days ago
The asterisk was formatted out. Read the book, they are types.
1 comments

So you can write "let x:const = 5"? if "const" is a type.
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?