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

if you want tail calls in Julia, there is a 3 line macro that gives it to you.


Could you point to it? Thanks


Here is one:

https://github.com/TakekazuKATO/TailRec.jl

It works by inspecting the code and rewriting a function to turn tail calls into loops.

The interesting bit is that it was very easy to write because of the strong macros in Julia.


This is eye opening. I might take a look at this in depth and try Julia again.


This repo should interest you https://github.com/TakekazuKATO/TailRec.jl




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

Search: