Zoom

Results 29 comments of Zoom

> > What are other languages? > > Rust in particular. I've [already answered](https://github.com/nim-lang/RFCs/issues/418#issuecomment-1491790744) that this is not true. They permit only the same-name shorthand as in #418. ```rust struct...

> Yes, but it's "similar". Would you mind Rust's solution too then? Because I would, see above. I probably just wouldn't care. If you think #418 it's problematic, not having...

> the idea that the convenience style insensitivity provides is worth losing users over is outrageous. The idea that the convenience style insensitivity is critical for deciding on using or...

This is already achievable with concepts: ```nim type ToInt = concept x int(x) is int proc foo(x: ToInt): int = 2 * x doAssert foo(2.Natural) == 4 ### type ToString...

Seeing as @ringabout is already working on an implementation, I'd like to consider the potential issues with a simple **positional** syntax proposed. Here's the example @ringabout left on the forum:...

If you really need positional initializers, I have a painless solution. Just define a macro which generates the converter from an anonymous tuple, maybe with just a pragma. This way...

> The converter solution is way uglier and has unintented consequences like: > > ```nim > let unrelatedTuple = ("Snark", 147, Galumphing) > proc takesBandersnatch(unrelatedTuple) # compiles > ``` What's...

> @ZoomRmc did you ever end up doing this? I had worked something out in a private repo, but as I recall the current channels implementation prevents reusing a generic...

At the moment the output format is subject to constant change so it will result in noise in the diffs, so I don't think it's suitable at the moment. If...