I don’t need something practical. I just need something fun to keep me motivated.

  • DaPorkchop_@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    This is probably an unpopular opinion, but I find modern C++ with templates and constexpr to be quite fun, mainly from the perspective of trying to do as much at compile-time as possible. Most of the resulting code is nearly incomprehensible and never gets used for anything outside of a godbolt demo, but trying to do complex tasks within the limited and unintuitive world of compile-time evaluation is something I’ve never really been able to find in any other language.

    i don’t want to hear about rust, const generics are almost useless and you know it, specialization isn’t really a thing and nothing like variadic templates exists yet

    • orclev@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 hours ago

      You should check out Zig’s macro system, I think you’ll find it really interesting.