News for hackers. Stuff that matters.
Re:New Features in Java 14 by crooked-v on Tuesday March 03, 2020 @08:00PM (#22480295)
Typescript is another one where null and undefined are unique singleton types, which are encompassed under the catch-all `any` type but, if strictness is turned on, are rejected by any other type matching.

    doThingA(param: any) // you can pass anything including null and undefined
    doThingB(param: object | number | string | boolean | bigint | symbol) // you can pass anything except null and undefined

There are no comments on this comment yet.