News for hackers. Stuff that matters.
Re:Show HN: The Shark Programming Language Realease 1.0.0 by shogundev on Friday March 24, 2023 @06:16PM (#35296428)
Not happening. If you compile something to Lua assigning a key to nil will erase it, python and javascript will keep it. Pheraps making a special NullObject value to fill these slots would be a good idea, but you could not interact seamlessly with the target system and probably get a speed penalty.

Having the exact behavoir in all platforms is not possible in some cases, and these are the cases left 'undefined' in the handbook.

Hope this clears things a bit ;)

Cheers, -Shogun

Re:Show HN: The Shark Programming Language Realease 1.0.0 by trehans on Friday March 24, 2023 @09:43PM (#35298260)
Why not remove the ability to set a key to the null value then? Raise an error in the compiler. It seems pretty undesirable to have undefined behavior in the language, and if high performance is one of your goals, remove the ability for users to do the low performance things.
Re:Show HN: The Shark Programming Language Realease 1.0.0 by a_t48 on Friday March 24, 2023 @09:46PM (#35298280)
Raise an error or just substitute with a deletion