News for hackers. Stuff that matters.
Re:Better C – A subset of D Programming Language by asdkjh345fd on Tuesday April 28, 2020 @07:48AM (#23006064)
So? They still have a type, it doesn't have to be "screw you figure it out yourself".

Functor f => (a -> b) -> f a -> f b

Re:Better C – A subset of D Programming Language by welkam on Tuesday April 28, 2020 @02:12PM (#23009988)
I have seen few videos by Walter Bright, Andrei Alexandrescu on ranges and I have no problem understanding D`s documentation. Maybe you should learn the language before using it.
Re:Better C – A subset of D Programming Language by jhoechtl on Tuesday April 28, 2020 @09:50AM (#23006920)
Repeating the same over and over again doesn't make it any clearer for the ones trying to follow your line of argumentation.

Seems like you had some deep exposure to Haskell, ML or Hindley-Milner in general which, when excessively consumed, detaches from reality.

For one reason or the other you take this discussion serious and personal.

Re:Better C – A subset of D Programming Language by asdkjh345fd on Tuesday April 28, 2020 @12:36PM (#23008717)
If something is unclear, you can ask for clarification. I repeated the statement to three people because three people repeated the same argument to me. This is how conversations work. I have very limited exposure to haskell, am not detached from reality, and am taking nothing personal. Of course the discussion is serious, why would I spend time engaging in a frivolous and meaningless discussion?
Re:Better C – A subset of D Programming Language by jcelerier on Tuesday April 28, 2020 @01:04PM (#23009055)
could you provide the type of this map function ?

    auto map(auto x) { 
      if constexpr(is_same<decltype(x), int>) {
       struct T1 { int getStuff() { return 0; } };
       return T1 {};
      } else { 
       struct T2 { void doStuff() { } };
       return T2 {};
      }
    }
Re:Better C – A subset of D Programming Language by asdkjh345fd on Tuesday April 28, 2020 @07:55PM (#23013603)
Read the rest of the discussion.