Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Java
class Foo { Integer i; }
class Test {
public static void main(String args[]) {
System.out.println(new Foo().i == null);
// JavaScript
class Test {}
console.log(new Test().i == null)
// Go
package main
type Test struct { i *int }
func main() {
println(new(Test).i == nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment