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

Programming language idea

Name: Anonymous 2011-01-25 19:32

Hi /prog/,
I have an idea for an esoteric programming language.
It will be called BitFuck and will have bitshift operators for I/O, ambiguos syntax and will have lambdas. Also vectors and hashmaps.

Here's some example code:


template<int n>
struct f { enum { value = n * f<n-1>::value };};
template<>
struct f { enum { value = 1 };};

int main() {
   cout << /* output with bitshift? who would ever think something so stupid! LOL */ f<f<3>::value+1<f<2>::value>::value; // I'm a genious, this shit is unreadable
}

Name: Anonymous 2011-01-25 22:00

To me << and >> were always visual metaphors rather bitshifting operators when used for IO.
As in ``push this shit into the function on the left".

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