ra’s avatarra’s Twitter Archive—№ 35,146

    1. plt friends: broadly speaking, is there any syntactic justification for a new keyword? any reason that invoking a type could not signal the same thing? i.e. x = new SomeType(y, z) vs x = SomeType(y, z) does new in the first convey anything that the second does not?
  1. …in reply to @ra
    i notice that Julia and GLSL do not have new keywords. in older unmanaged languages it replaced e.g. malloc. javascript needs it because theres so little information in its type system, but i wonder how much of new's modern use is historic convention.
    1. …in reply to @ra
      this definitely has nothing to do with the post-Clojure lisp i am definitely not working on
      oh my god twitter doesn’t include alt text from images in their API