jazz icon indicating copy to clipboard operation
jazz copied to clipboard

which functional operation would simplify this?

Open naturallymitchell opened this issue 5 years ago • 2 comments

https://github.com/foundpatterns/torchbear/blob/2b7737008f925b793dff466dbdd508ece9baacf5/src/managers/web_server.lua#L11

naturallymitchell avatar Oct 15 '18 06:10 naturallymitchell

that would be a foreach, but I now think lua is in this case better used as imperative rather than functional (i'm not shure though, i'm not very strong on this opinion)

Arnaz87 avatar Oct 20 '18 23:10 Arnaz87

The loop form is simpler or equal to the functional form, and this was moved to lighttouch anyway.

Arnaz87 avatar Nov 07 '18 04:11 Arnaz87