Is there a compiled* programming language with dynamic, maybe even weak typing?

后端 未结 9 2047
野的像风
野的像风 2021-02-02 06:44

I wondered if there is a programming language which compiles to machine code/binary (not bytecode then executed by a VM, that\'s something completely different when considering

9条回答
  •  名媛妹妹
    2021-02-02 07:24

    I don't know of any language that has exactly those capabilities. I can think of two that have a significant subset, though:

    • D has type inference, garbage collection, and powerful metaprogramming facilities, yet compiles to efficient machine code. It does not have dynamic typing, however.
    • C# can be compiled directly to machine code via the mono project. C# has a similar feature set to D, but again without dynamic typing.

提交回复
热议问题