Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure. And so it would in Pyret. It is just some sugar to make it more clear that this code belongs to a particular function. It can also be much more improved and coupled to the 'owner' function, but that's just a simple example of how to make a macro that emulates in part Pyret's inline tests.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: