<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>unageanu</author_name>
  <author_url>https://blog.hatena.ne.jp/unageanu/</author_url>
  <blog_title>うなの日記</blog_title>
  <blog_url>https://unageanu.hatenablog.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>昨日書いたオブジェクトのメソッド呼び出しを「 」で実行できる件について、みずしまさんよりコメントを頂いた(ありがとうございます!)ので、仕様書を確認。 どうも、メソッド呼び出しと演算子がまったく別物という認識がそもそも間違っていたようだ。Scalaではクラスの演算子をメソッドとして定義するのと同じノリで、メソッドも演算子のように利用することができると理解して納得。 // 「+」演算子をオーバーライドしたクラス。 class Foo(i:Int) { def +(j:Int):Int = i+j def plus(j:Int):Int = i+j } // 「+」メソッドを演算子として使えるのと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20080525%2F1211705979&quot; title=&quot; 演算子とメソッド - うなの日記&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-05-25 17:59:39</published>
  <title> 演算子とメソッド</title>
  <type>rich</type>
  <url>https://unageanu.hatenablog.com/entry/20080525/1211705979</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
