igorw / yolo

The microframework with swag.
yolophp.computer
MIT License
200 stars 27 forks source link

Pure PHP just ain't got dat swag #18

Closed hikari-no-yume closed 9 years ago

hikari-no-yume commented 9 years ago

By using a compile-to-PHP language like Blueberry, YOLO can obtain 763% more swag, and upset even more h4t3rz!

Wouldn't you like to write yolo core code... LIKE THIS?

<?bb #YOLO

namespace yolo

class_alias("Symfony\Component\HttpFoundation\Request", Request::class)
class_alias("Symfony\Component\HttpFoundation\Response", Response::class)

def yolo(controller)
  request = Request::createFromGlobals()
  response = controller(request)
  response.send()
  unlink(__FILE__)
end

Issues:

tpavlek commented 9 years ago

-1 This just adds unecessary bloat

Blueberries are Fat

hikari-no-yume commented 9 years ago

@tpavlek This could be easily rectified:

hikari-no-yume commented 9 years ago

Did you know that Blueberry supports #swag symbols like :yolo?

yolo(:yolo)

And you can enumerate the philosophy!

for yo in lo
  if yo(lo)
    echo(:yolo)
  end
end

gosukiwi commented 9 years ago

Much yolo, very wow, such blue.

igorw commented 9 years ago

could use more lisp

igorw commented 9 years ago

has anyone done a compiler from haskell to PHP yet?

hikari-no-yume commented 9 years ago

There could always be a first.

hikari-no-yume commented 9 years ago

Oh, I know. Yolo should have its own Lisp, Yolisp, which would be written in itself:

['fn', ['a', 'b'], ['+', 'a', 'b']]
hikari-no-yume commented 9 years ago
(yolo\yolo (lambda (req) (new yolo\Response 'yolo)))
igorw commented 9 years ago

see also https://github.com/lisphp/lisphp

hikari-no-yume commented 9 years ago

Not swag enough. Lemme see what I can do.