¿Qué es un lenguaje de programación débilmente tipado?

Web 2021-08-18 19:37:58 1 7,426

Los lenguajes de programación débilmente tipados también se denominan lenguajes de definición débilmente tipados, en contraposición a las definiciones fuertemente tipadas. Como JavaScript, vb, php, etc. son lenguajes de tipo débil. Las principales diferencias entre los lenguajes de tipado débil y los lenguajes de tipado fuerte son las siguientes.

(1) Lenguajes débilmente tipados, las variables no se dividen en varios tipos, las declaraciones de variables usan la palabra clave var, que determinará automáticamente el tipo y convertirá al asignar un valor a una variable; lenguajes fuertemente tipados, hay muchos tipos de variables, y las variables solo pueden aceptar y el mismo tipo de datos.

(2) Lenguajes débilmente tipados, no se requiere conversión explícita entre variables. Por ejemplo, reste la cadena 12 y el número entero 3 para obtener el valor 9, sin conversión explícita.


Sus comentarios

Already have 1 Article answer
  • website 1楼
    Thank you for all your work on this site. Gloria enjoys carrying out investigation and it's really easy to understand why. All of us hear all about the lively mode you convey vital things through this website and cause response from others about this point then our own child is without a doubt learning a lot. Enjoy the remaining portion of the new year. You're the one carrying out a powerful job.
    发布于 2021/12/16 22:06
  • Clasificación del calor
    Últimas respuestas