From: matz@... Date: 2019-11-13T11:15:24+00:00 Subject: [ruby-core:95840] [Ruby master Feature#16275] Revert `.:` syntax Issue #16275 has been updated by matz (Yukihiro Matsumoto). @zverok Sorry if we hurt your feeling. In recent years, we have added/discussed a lot of features inspired by functional programming. But those features are not designed with a grand design. Those are rather ad hoc additions. We felt the future, more functional Ruby should be designed with the big picture of functional Ruby programming, which we lack currently. Besides that, I don't like the specific operator (`.:`) which looks like braille. So you don't have to consider this revert as a rejection of this whole idea, but an invitation to the next try. Matz. ---------------------------------------- Feature #16275: Revert `.:` syntax https://bugs.ruby-lang.org/issues/16275#change-82674 * Author: naruse (Yui NARUSE) * Status: Closed * Priority: Normal * Assignee: * Target version: ---------------------------------------- `obj.:method` is introduced at r66667 by #12125 and #13581. It encourages the functional programming style in Ruby. But this shorthand syntax is just for methods of `self` without arguments. It causes another feature requests like #16273 (and lambda compositions like #15428). Such features will introduce a new view of Ruby but no one illustrates the whole picture yet. I worried about such patch work may cause a conflict with future expansion of functional programing style or a just a garbage feature. `.:` syntax is introduced in 2.7.0 preview1, not released in production yet. How about reverting at this time and re-introduce with a big picture. ---Files-------------------------------- dot-colon-vs-std-benchmark.png (8.69 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: