Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Curing the FIOC

Name: Anonymous 2011-03-29 10:43

Infix syntax for Python: https://github.com/JulienPalard/Pipe

euler2 = fib() | where(lambda x: x % 2 == 0) | take_while(lambda x: x < 4000000) | add

Name: Anonymous 2011-03-29 10:47

>>1
It doesn't cure the FIOC, but it significantly reduces Forced Parenthesisation of code )))))))))))))))))))))). Good job, Julien, you sly dog you!

Name: Anonymous 2011-03-29 11:02

>>1
What's the difference between this and THE FORCED ONE-LINERIZATION TO AVOID THE FORCED INDENTATION OF CODE?

Name: Anonymous 2011-03-29 11:07

That shit is still a weak substitute for a real functional programming language.

Name: Anonymous 2011-03-29 11:14

>>4
But it's cute! I can even see the Pythonistas struggle like babies and say ``when I'll grow up I'll be just like Haskell-niichan, but twice as powerful and functional!''.

Name: Anonymous 2011-03-29 11:41

Now if FIOC would just have a case/switch statement...

Name: Anonymous 2011-03-29 11:49

Huh? Doesn't FIOC C code have a case/switch statement? I mean, when I write a case/switch statement in Emacs, the fucking editor will automatically indent the shit.

Name: Anonymous 2011-03-29 11:50

Shit never mind. I had a brain fart.

Name: Anonymous 2011-03-29 13:22

I prefer ``In Lisp'' DSL's |>. | is for bitwise or.

Name: Anonymous 2011-03-29 13:34

>>9
That's from ML. The ``In Lisp'' DSL took many things from it.

Name: Anonymous 2012-08-22 12:34

>>6
You can still use a dict() with lambdas.

Name: Anonymous 2012-08-22 12:42

>>10
I rewrote the "Lisp DSL" completely a few times. But I'm too lazy to write more than a few SEXPs a day. Still havent implemented my dream DwarfFortress like RPG in it. I wanted to do some cute AI stuff in it, like player descending into world, that already evaluated for some times and instead of generating character, player is being offered to pick from the persons born in world, based on his query, so he can end up playing a dragon or a cat, with its own generated set of goals and background.

Name: Anonymous 2012-08-22 12:46

>>5
Fuck, that makes me want to slam my dick viciously into some Pythonista ass so hard.

Name: Anonymous 2012-08-22 12:46

>>12
I also ripped a ton of oldschool isometric tilesets from Ultima 7 and Faery Tale Adventure, so there should be no problem with game graphics, and this pixealrt graphics allows for easy programmatic recombination and recoloring of parts.

Name: Anonymous 2012-08-23 4:23

>>14
Write a Starcraft clone in lisp

Don't change these.
Name: Email:
Entire Thread Thread List