Re:Show HN: The Shark Programming Language Realease 1.0.0
by shogundev on Friday March 24, 2023 @07:29PM
(#35297093)
The code compiles and runs very cleanly and smoothly under win32 and linux mint. This is probably an issue of size_t being different sized in a platform or the code using int64_t everywhere but int is 32 bit. Thanks (and is not ironic).
Shogun
Re:Show HN: The Shark Programming Language Realease 1.0.0
by PeterWhittaker on Saturday March 25, 2023 @08:22AM
(#35301956)
Perhaps use zu instead of d as the format specifier for size_t types?
That seems like a cavalier approach to type warnings. Sure, it may not be an issue, most of the time, but type warnings are there to highlight/suggest potentially bad code, e.g., poorly thought out or insufficient consideration given to typing, overflows, etc.
For a one-off or bit of hobby code, I'm quite happy to compile without warnings and/or to ignore whatever warnings my code generates, but for something I am sharing with others, especially releasing and hoping they will adopt, I crank the warnings to 11 and make sure compiles are clean, without pragmas.