duerst (Martin Dürst) wrote in #note-43: > One more point: I haven't seen much examples of similar features in other languages. The only suggestion I saw was that of a similarity to Python tuples. But tuples are much closer to Arrays th...esquinas (Enrique Esquinas)
ko1 (Koichi Sasada) wrote in #note-34: > how about `%struct{a: 1, b: 2}` (and `%value{...}` if needed)? > ... I like it! IMO, it's one of the most "natural to read" options and is undoubtedly easier to write than `Struct.new(:a, :b, :c...esquinas (Enrique Esquinas)
Issue #16122 gave me this idea: I we already had `Struct::Value`, then I think it would make a lot of sense to allow the following syntax: `%v{ a: 1, b: 2, c: 3 }` **v** short for Struct.**V**alue => immutable: true, enumerable: fa...esquinas (Enrique Esquinas)
Hello, this is a great idea. I would just love to have this feature in Ruby, so I thought I may provide some helpful input: First, I would like to read more ideas about the exact implementation, specially: 1. Will the literal pro...esquinas (Enrique Esquinas)