What are you working on, Jow Forums?
Previous thread:
What are you working on, Jow Forums?
Previous thread:
Other urls found in this thread:
>includes in a separate directory
Nope.
Behold, the power of C++!
#include
template
struct List;
template
struct List
{
constexpr static
unsigned size = 1 + List::size;
using Head = T;
using Tail = List;
};
template
struct List
{
constexpr static
unsigned size = 0;
};
template
auto consHelper(List)
{
return List{};
}
template
using Cons = decltype(consHelper(L{}));
template
auto mapHelper(List = {})
{
return List{};
}
template
auto mapHelper(List = {})
{
return Cons<
typename Fn::template Template,
decltype(mapHelper())
>{};
}
template
using Map = decltype(mapHelper(L{}));
struct AddPtr
{
template
using Template = T*;
};
using PtrList = Map;
void f(PtrList)
{}
template
auto filterHelper(List = {})
{
return List{};
}
template
auto filterHelper(List = {})
{
return std::conditional_t<
Fn::template Template,
Cons,
decltype(filterHelper())
>{};
}
template
using Filter = decltype(filterHelper(L{}));
struct IsInteger
{
template
constexpr static
bool Template = std::is_integral_v;
};
using IntegerList = Filter;
void f(IntegerList)
{}
>POO programmer
>shitty wall of text image macro
>non-anime OP for /dpt/
Ban OOP from /dpt/
template
auto foldHelper(List = {})
{
return Init{};
}
template
auto foldHelper(List = {})
{
return (typename Fn::template Template<
T,
decltype(foldHelper())
>){};
}
template
using Fold = decltype(foldHelper(L{}));
struct Biggest
{
template
using Template = std::conditional_t<
(sizeof(T) > sizeof(U)),
T,
U
>;
};
using BiggestElem = Fold;
void f(BiggestElem)
{}
struct Id
{
template
using Template = T;
};
struct ComposeTwo
{
template
struct TemplateHelper
{
template
using Template = typename Y::template Template<
typename X::template Template
>;
};
template
using Template = TemplateHelper;
};
template
using Compose = Fold<
ComposeTwo,
Id,
L
>;
struct AddConst
{
template
using Template = T const;
};
using PPP = Compose;
void f(PPP::template Template)
{}
>Yeah I was working with them the last year. They were a start up and doing a lot of interesting work with web data related to the work involved with your company
>Ok cool, and how much you were getting paid?
>...
What are you trying to achieve?
learn Haskell
Why is he using self for LineEdit and is not using self for Label?
where do you braindead haskell NPCs get the idea that functional programming is a worthwhile pursuit? who implanted the idea into your head?