<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>any-programming</author_name>
  <author_url>https://blog.hatena.ne.jp/any-programming/</author_url>
  <blog_title>何でもプログラミング</blog_title>
  <blog_url>https://any-programming.hatenablog.com/</blog_url>
  <categories>
    <anon>F#</anon>
  </categories>
  <description>例えば下記のようなCounterクラスを考えます。 type Counter() = let mutable count = 0 member this.CountUp() = count &lt;- count + 1 member this.CountDown() = count &lt;- count - 1 member this.Count = count これをレコード型を用いて実装すると下記のようになります。privateを付加することで、外側からフィールドにアクセスできなくなります。 [&lt;AutoOpen&gt;] module CounterModule = type Counter = pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fany-programming.hatenablog.com%2Fentry%2F2018%2F04%2F12%2F000511&quot; title=&quot;レコード型のフィールド隠蔽（F#） - 何でもプログラミング&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>2018-04-12 00:05:11</published>
  <title>レコード型のフィールド隠蔽（F#）</title>
  <type>rich</type>
  <url>https://any-programming.hatenablog.com/entry/2018/04/12/000511</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
