Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: