エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Feature #11537: Introduce "Safe navigation operator" - Ruby - Ruby Issue Tracking System
記事へのコメント4件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Feature #11537: Introduce "Safe navigation operator" - Ruby - Ruby Issue Tracking System
# Use ActiveSupport if u.try!(:profile).try!(:thumbnails).try!(:large) ... I hope to write shortl... # Use ActiveSupport if u.try!(:profile).try!(:thumbnails).try!(:large) ... I hope to write shortly above code. Groovy has above operator named "Safe navigation operator" with "?." syntax. Ruby can't use "?." operator. Can we use ".?" syntax. like this:






2022/02/23 リンク