Remix.run Logo
lanstin 6 hours ago

Wow that is cool. Pass by name. I always wanted to try it.

Taniwha 23 minutes ago | parent | next [-]

Algol60 had call by name, Algol68 doesn't really, it does have "proceduring" which creates a function to call when you pass an expression to a parameter that's a function pointer that has no parameters, you can use that to sort of do something like call by name but the expense is more obvious

Y_Y 36 minutes ago | parent | prev [-]

Just pass a string and `eval` it.