2008/8/20 gert <[EMAIL PROTECTED]>: > > On Aug 19, 1:30 am, "Graham Dumpleton" <[EMAIL PROTECTED]> > wrote: >> FYI. >> >> http://wsapi.luaforge.net/ >> >> For example: >> >> function hello(wsapi_env) >> local headers = { ["Content-type"] = "text/html" } >> >> local function hello_text() >> coroutine.yield("<html><body>") >> coroutine.yield("<p>Hello Wsapi!</p>") >> coroutine.yield("<p>PATH_INFO: " .. wsapi_env.PATH_INFO .. "</p>") >> coroutine.yield("<p>SCRIPT_NAME: " .. wsapi_env.SCRIPT_NAME .. "</p>") >> coroutine.yield("</body></html>") >> end >> >> return 200, headers, coroutine.wrap(hello_text) >> end >> >> Lua is apparently quite lightweight and from memory there was some >> talk about using it as defacto scripting language within Apache to >> allow tricky stuff to be done with configuration and setup. Catalyst >> for that was work which has been done with mod_wombat. > > Why do people never stick to something that makes sense like c or > javascript or python :-) > I mean "local function" wtf or "end" like } isnt annoying enough > already
Python uses indenting to mean something where other languages don't. You can hardly criticise other languages when Python has its own collection of oddities. Graham --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
