Well, if you want them in pike they have to be objects.

My point is that people might argue that mapping should have all those
variants, just as they argue that int should have an unsigned variant
(or that string should have an unshared variant, or that float should
have a longer variant, or whatever).

All such arguments don't fit very well with the very deep integration
of the basic data types. One could possibly argue for modifying
(slightly) the behavior of one of these types, but adding another one
is basically a no-no.

Worth noting that it wouldn't necessarily have to be that way, though.
The pike internals could have been built with a different architecture
so that all referenced data types (i.e. everything except native
integers and floats) are basically handled as objects, and all the
special behaviors of the type system and operators etc would be
controlled by properties in those objects (like in any pure object
oriented language).

That would have been pretty, and possibly lessen the code bloat in the
core parts. But what we're talking about then is such a fundamental
change that almost nothing would remain the same on the C level.
      • ... Johan Sundstr�m (Achtung Liebe!) @ Pike (-) developers forum
        • ... Martin Baehr
  • uns... Martin Stjernholm, Roxen IS @ Pike developers forum
    • ... Martin Baehr
      • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
        • ... Martin Baehr
      • ... Johan Sundstr�m (Achtung Liebe!) @ Pike (-) developers forum
        • ... Martin Baehr
      • ... Martin Stjernholm, Roxen IS @ Pike developers forum
        • ... Martin Baehr
          • ... Martin Stjernholm, Roxen IS @ Pike developers forum
            • ... Martin Baehr
              • ... Martin Stjernholm, Roxen IS @ Pike developers forum
  • uns... Mirar @ Pike developers forum
  • Re:... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum

Reply via email to