> 6 maj 2016 kl. 10:30 skrev Mirar @ Pike developers forum > <10...@lyskom.lysator.liu.se>: > > I just do things like > > inherit Protocols.HTTP.Session; > > […] > ... > async_get_url("http://172.16.2.102/command.json", > (["command":s]), > lambda(){},lambda(){},lambda(){}); > > which doesn't feel very cumbersome. :)
Hehe, I agree to that, but it takes quite the Pike knowledge to get to that solution I would say. The thing though with ”promises” is that you get more of a procedural style of programming even when you do async stuff, which tend to be more intuitive to most people. # Pontus