• skip0110@lemm.ee
    link
    fedilink
    English
    arrow-up
    1
    ·
    22 hours ago

    “signal handling is zero-cost until the signal is generated”

    True, but higher level languages impose restrictions about in lining and other optimizations for code blocks that can generate/catch an exception. So an explicit null check is often superior.