エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Crystal - Rubyと異なるアクセサの命名 #ruby #crystal - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Crystal - Rubyと異なるアクセサの命名 #ruby #crystal - Qiita
Crystal命名議論Issueより On the other hand, I never really liked attr_accessor, attr_reader and a... Crystal命名議論Issueより On the other hand, I never really liked attr_accessor, attr_reader and attr_writer. In every other language they are called property, getter and setter. Issue全体を見てみたい方は以下より Issue651(method naming conventions ) - Crystal - GitHub サンプル Rubyプログラム require 'pp' class Person attr_accessor :name attr_reader :age attr_writer :hello def initialize(name, age) @name, @age = name, age end d