Login
You're viewing the ruby.social public feed.
  • Nov 25, 2026, 8:20 PM

    @bunny @complexmath "Like any code for which the result cannot be defined must not be compiled."

    A language with this rule, by definition, does not have UB.

    💬 1🔄 0⭐ 0

Replies

  • Nov 25, 2026, 9:02 PM

    @mcc@mastodon.social @complexmath@hachyderm.io Yes, and my impression is that for most programming languages this is the standard. To cause UB you would have to use FFI to load to a C library or something. That rust does allow that inline using unsafe{} is an interesting design choice but whatever. Yes, there is a lot of languages that I did not examine in detail, I do not see any reason whatsoever for them to have UB, and they might ​:abunhd:​

    💬 0🔄 0⭐ 0