News for hackers. Stuff that matters.
Re:Language Design: Use 'ident: Type' not 'Type ident' by earthboundkid on Friday May 01, 2020 @09:58PM (#23048422)

    A pointer to an int "should" be &int, not int*. That we use *, the 
    dereference operator, to indicate pointers is wrong. * in a type means it's an 
    address, but * in a value means it's not an address. That's nuts! Make it 
    consistent and use & both places. If you need to have a distinction between 
    refs and pointers, it should be that pointers are nullable refs: &int? or some 
    such.

    Edit: How to escape asterisks in HN?
Re:Language Design: Use 'ident: Type' not 'Type ident' by mariodiana on Friday May 01, 2020 @10:18PM (#23048530)
I think you may be right, &int would be better than int*.

I did not want to stray too far from what C does now, for the sake of argument. I just wanted to say that the ambiguity in C is often because it's so loosey-goosey with whitespace.

Re:Language Design: Use 'ident: Type' not 'Type ident' by saagarjha on Friday May 01, 2020 @10:06PM (#23048473)
I’ve had luck with not putting something directly after the asterisk.
Re:Language Design: Use 'ident: Type' not 'Type ident' by earthboundkid on Saturday May 02, 2020 @12:58PM (#23053079)
Apparently HN does not have an escape character which seems like a real oversight. :-/