<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naoya</author_name>
  <author_url>https://blog.hatena.ne.jp/naoya/</author_url>
  <blog_title>naoyaのはてなダイアリー</blog_title>
  <blog_url>https://naoya-2.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>昨日はJava的と書いたのだが、よく考えてみるとJavaでこういう書き方をするのはコンストラクタだけだなぁ。何となく思ったので書いておく。 Class instance = new Class(); instance.do();こう考えてみると、コンストラクタでnew Class、メソッド呼び出しで矢印というのも、あながち変でもないか。（id:naoyaさんによると、Class-&gt;new型の人も結構いるらしい。ふむふむ。） Perl のコンストラクタ呼び出しは my $instance = Foo::Bar-&gt;new;でも my $instance = new Foo::Bar;でもいいんだけ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaoya-2.hatenadiary.org%2Fentry%2F20050705%2F1120519885&quot; title=&quot; new Classs or Class-&amp;gt;new どっち - naoyaのはてなダイアリー&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51KXS97K1PL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-07-05 08:31:25</published>
  <title> new Classs or Class-&gt;new どっち</title>
  <type>rich</type>
  <url>https://naoya-2.hatenadiary.org/entry/20050705/1120519885</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
