News for hackers. Stuff that matters.
Re:Go: Sentinel errors and errors.Is() slow your code down b... by vips7L on Saturday June 01, 2024 @04:00PM (#40548627)
IMO it tries to look low level by including pointers.
Re:Go: Sentinel errors and errors.Is() slow your code down b... by randomdata on Saturday June 01, 2024 @05:00PM (#40549031)
What is low level about Go's pointers? You can't assign an arbitrary memory location. You can't do arithmetic. You can't do much of anything with them other than reference a value. I can't think of any language considered high level that doesn't have the ability to reference a value.
Re:Go: Sentinel errors and errors.Is() slow your code down b... by vips7L on Saturday June 01, 2024 @05:09PM (#40549086)
Like I said I think it tries to masquerade it’s low level by including them when they’re not really pointers. I see no reason why they didn’t go the route of other GC’d languages which don’t include faux-pointers.
Re:Go: Sentinel errors and errors.Is() slow your code down b... by randomdata on Saturday June 01, 2024 @05:13PM (#40549113)
Yes, you've repeated yourself twice now, but haven't explained yourself. What is low level about Go's pointers that would suggest that might suggest it is a low level language? There is nothing low level about them.
Re:Go: Sentinel errors and errors.Is() slow your code down b... by vips7L on Saturday June 01, 2024 @05:50PM (#40549361)
I’ve repeated myself because you don’t seem to be reading the words: masquerades, faux-pointers. I never claimed they were low level. I said they were pretending to be because pointers are completely unnecessary in a garbage collected language.
Re:Go: Sentinel errors and errors.Is() slow your code down b... by randomdata on Saturday June 01, 2024 @06:59PM (#40549842)
You've repeated yourself for a third time, but have yet to explain yourself. Pointers are unnecessary in every language, but there is nothing to suggest that a language with them is low level. Clearly there is nothing about pointers that make them low level.

I'd ask again, but it is apparent you don't even know what you meant by it.