News for hackers. Stuff that matters.
Re:Announcing Dart 2 Stable and the Dart Web Platform by EugeneOZ on Tuesday August 07, 2018 @07:22PM (#17711835)
const and mut are not types, it's modifiers of mutability. On both lines type is u32z
Re:Announcing Dart 2 Stable and the Dart Web Platform by foldr on Wednesday August 08, 2018 @06:31AM (#17714637)
The asterisks in leshow's comment are being lost in the formatting, since HN uses them for italicization. So the last line, for example, is:

    The rust book even refers to *const and *mut pointers as types.
Re:Announcing Dart 2 Stable and the Dart Web Platform by EugeneOZ on Wednesday August 08, 2018 @01:41PM (#17717805)
I really can't believe how stupid people can be to say "const" is a type. Even if Klabnik will say it into my face it will not be true, I don't care about the book he wrote.
Re:Announcing Dart 2 Stable and the Dart Web Platform by foldr on Thursday August 09, 2018 @06:22AM (#17722954)
leshow said that

    *const u32
is a type, not that 'const' is a type. HN's formatting removed the asterisk, as it uses asterkisks for italicization.
Re:Announcing Dart 2 Stable and the Dart Web Platform by leshow on Wednesday August 08, 2018 @09:41AM (#17715822)
The asterisk was formatted out. Read the book, they are types.
Re:Announcing Dart 2 Stable and the Dart Web Platform by EugeneOZ on Wednesday August 08, 2018 @01:38PM (#17717789)
So you can write "let x:const = 5"? if "const" is a type.
Re:Announcing Dart 2 Stable and the Dart Web Platform by leshow on Friday August 10, 2018 @10:16AM (#17733423)
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?