<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>HisakiT</author_name>
  <author_url>https://blog.hatena.ne.jp/HisakiT/</author_url>
  <blog_title> Hisakeyのブログ</blog_title>
  <blog_url>https://hisakit.hatenablog.com/</blog_url>
  <categories>
    <anon>技術記事</anon>
  </categories>
  <description>はじめに Rubyの参照の値渡しについては、一度ブログに書いていますが、改めて振り返ろうと思い書き始めました 背景・動機 基本的には、Rubyだけをかいてきたのですが、転職したタイミングでGoを使うようになりました 挙動や書き方がRubyと全然違うなーと思い、せっかくならRubyとGoの比較を書きたいなと思い、RubyとGoの値渡しについて書くことにしました 実例・やってみたこと Rubyの振り返り まず結論をだすと、 オブジェクトの中身を変更すると、呼び出し元にも影響します 引数そのものを別のオブジェクトへ再代入しても、呼び出し元には影響しません # object_mutation.rb c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhisakit.hatenablog.com%2Fentry%2F2026%2F07%2F04%2F225352&quot; title=&quot;RubyとGoの「値渡し」の違いを実際に試してみた -  Hisakeyのブログ&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>2026-07-04 22:53:52</published>
  <title>RubyとGoの「値渡し」の違いを実際に試してみた</title>
  <type>rich</type>
  <url>https://hisakit.hatenablog.com/entry/2026/07/04/225352</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
