On 2020-01-28 15:37, Trey Harris wrote:


On Tue, Jan 28, 2020 at 18:09 ToddAndMargo via perl6-users <perl6-us...@perl.org <mailto:perl6-us...@perl.org>> wrote:

    Observer effect (physics)
    https://en.wikipedia.org/wiki/Observer_effect_(physics)

          In physics, the observer effect is the theory that
          the mere observation of a phenomenon inevitably
          changes that phenomenon ... An especially unusual
          version of the observer effect occurs in quantum
          mechanics, as best demonstrated by the double-slit
          experiment

    Seems Quantum theory has come to Raku, only we call it "unboxing".


As I wrote in your Raku/problem-solving issue (#154), your question is not well-formed. A native value has no metadata, so how can it have a type? Any experience at all with a language with pointer arithmetic should make this clear.

And you issue doesn’t seem to be with unboxing—as far as I can tell, you’re unboxing (assigning to a native) just fine, it’s the autoboxing that’s giving you fits.

If you can show a language that can do what you want—whether it’s a `typeof` equivalent or a binary data validity checker or a magic number heuristic or something else, then we may be able to help you, but right now you seem to be asking for something akin to wanting to know what color the bits in your uint32 are—it’s not a question with meaning.

Trey,

If I ask what something is, I want an accurate answer back.

-T

Reply via email to