News for hackers. Stuff that matters.
Re:Scopes – Retargetable programming language and infrastruc... by jonathanstrange on Monday May 06, 2019 @05:01AM (#19837832)
Out of curiosity, the docs state that closures are supported as zero-cost abstractions. That seems to imply that the language can store environments at zero cost. How is that possible?
Re:Scopes – Retargetable programming language and infrastruc... by sanxiyn on Monday May 06, 2019 @08:09AM (#19838625)
It does not imply that. Closures are usually implemented with environments, but this is unnecessary. You can compile so that everything that would be in the environment is passed as arguments. It seems to me Scopes is implemented this way.
Re:Scopes – Retargetable programming language and infrastruc... by jlg23 on Monday May 06, 2019 @07:42AM (#19838462)