News for hackers. Stuff that matters.
Re:Generalizing Support for Functional OOP in R by orhmeh09 on Tuesday May 28, 2024 @07:39PM (#40506734)
Thank you for the correction. Is it possible to use NSE in say Python or JavaScript?
Re:Generalizing Support for Functional OOP in R by CornCobs on Tuesday May 28, 2024 @08:11PM (#40506892)
Yes, though the languages do not support it explicitly you can simulate lazy evaluation by wrapping all your arguments in closures. This way they won't be evaluated until called within the function body.
Re:Generalizing Support for Functional OOP in R by agumonkey on Wednesday May 29, 2024 @11:46AM (#40513199)
Sidenote, the evaluation model of python can be surprising. List comprehension will create implicit function scopes that can trip you up.