News for hackers. Stuff that matters.
Re:I Want Off Mr. Golang's Wild Ride by kybernetikos on Friday February 28, 2020 @08:20PM (#22447982)
Javascript has type errors too, and Java will let you 'add' a string to an integer, so it's more nuanced than that...

Javascript:

    > null.bob()
    
    TypeError: Cannot read property 'bob' of null

    > 4 >>> Symbol("four")
    
    TypeError: Cannot convert a Symbol value to a number

    > BigInt(null)
    
    TypeError: Cannot convert null to a BigInt

    > Object.create(false)
   
    TypeError: Object prototype may only be an Object or null: false
Java:

    int anInteger = 10;
    String s = anInteger + "Hello";

There are no comments on this comment yet.