Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
nullpwr
5d ago
0 comments
Share
> The language should not let you create an an invalid pointer, or at least warn you when you are doing so
completely agree!
0 comments
default
newest
oldest
casey2
5d ago
That's a nonsensical statement, a language cannot warn you, only a compiler can (-Wcast-align). The compiler can also decide what is and isn't an invalid pointer, this way the language avoids leaky abstractions.
j
/
k
navigate · click thread line to collapse