General

Profile

esquinas (Enrique Esquinas)

  • Login: esquinas
  • Registered on: 07/03/2020
  • Last sign in: 09/29/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 0 0

Activity

09/29/2020

02:35 PM Ruby Feature #16986: Anonymous Struct literal
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)

08/20/2020

02:48 PM Ruby Feature #16986: Anonymous Struct literal
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)

08/18/2020

05:05 PM Ruby Feature #16986: Anonymous Struct literal
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)

07/03/2020

10:52 AM Ruby Feature #16986: Anonymous Struct literal
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)

Also available in: Atom