Carl Mäsak

Results 649 comments of Carl Mäsak

Nobody in this issue seems to have pointed out that this macro would want to interact with the _loop protocol_ somehow. Obviously, a `prev` outside of a loop doesn't make...

Related: [Ref returns and ref locals](https://blogs.msdn.microsoft.com/ericlippert/2011/06/23/ref-returns-and-ref-locals/)

An idea I had a while ago was to have the syntax be this: ``` func substr(str, start, length?) = repl { // ... } ``` That is, the additional...

Actually, given that x.y() in 007 (unlike in Perl 6, JavaScript and Java, but like Python) is grammatically just `x.y` with a `()` postfixed, I don't think there's a way...

I think the nicest thing about this is that something like mylist.map(someobject.method) will just automatically fall out of the deal and Do The Right Thing.

I just realized that this could also completely replace `::` as a namespace separator. What today is `Q::Statement::If` could be changed to `Q.Statement.If`. How would one define this in-language? Well,...

> In other words, unbound methods are subs, whose first parameter `self` is the invocant. Worth pointing out that this is not possible right now, since `D.foo` would refer to...

Just dropping this here: something as rare as [a regret about bound methods](https://belkadan.com/blog/2021/09/Swift-Regret-Bound-Methods/?tag=swift-regrets). (Edit: I would summarize this regret as "bound methods interact confusingly with method overloading".)

The reason I want `recurse` to be explicit instead of automatically inferred is that sometimes, it's more important to preserve the stack frames (for stack traces and the like). It...

> That said, everything is fair of you predeclare. I don't see a problem with having a module that would detect all the places in the scope it's injected where...