News for hackers. Stuff that matters.
Re:The Hare programming language by torresjrjr on Monday April 25, 2022 @01:37PM (#31158148)
A single ':' is used for other things, like casting types.

    let x: int = 0;
It's so that the compiler can distinguish between those two, and likely some other areas too.
Re:The Hare programming language by xigoi on Monday April 25, 2022 @01:54PM (#31158389)
A different character could be used, such as # (like in VimScript) or \ (like in… PHP?)
Re:The Hare programming language by torresjrjr on Monday April 25, 2022 @04:30PM (#31160185)
True, but :: is probably more readable than # or \ Design a language, and you'll understand that there's always trade-offs.
Re:The Hare programming language by xigoi on Monday April 25, 2022 @04:33PM (#31160222)
I personally find :: very unreadable, for the very reason I mentioned.