Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8167259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:08:25+00:00 2026-06-06T20:08:25+00:00

Is the quality of a language where it’s not required to declare a variables

  • 0

Is the quality of a language where it’s not required to declare a variables type (such as PHP and Perl) known as weak typing or dynamic typing? I’m having trouble getting my head around the two terms.

Am I right that dynamic/static typing pertains to type conversion whereas weak/strong typing pertains to the deceleration of a variable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T20:08:30+00:00Added an answer on June 6, 2026 at 8:08 pm

    According to: http://en.wikipedia.org/wiki/Type_system#Static_and_dynamic_type_checking_in_practice

    Weak typing means that a language implicitly converts (or casts) types when used.

    whereas:

    A programming language is said to use static typing when type checking is performed during compile-time as opposed to run-time.

    So, strong/weak and static/dynamic are two different dimensions. A language will be one of strong/weak, and also one of static dynamic. For instance, Ruby and Javascript are both dynamically typed, but Ruby is strongly typed while Javascript is weakly typed. That is, in Ruby the following code with give an error:

    1.9.2p290 :001 > 'a'+1
    TypeError: can't convert Fixnum into String
    

    whereas in JavaScript, you get:

    > 'a'+1
    >> 'a1'
    

    So, a strongly typed language requires you to convert two variables to the same type in order to combine them (eg. using 1.to_s), while a weakly typed language will attempt to coerce the two variables into the same type using some extra built-in language logic – in JavaScript’s case, combining anything with a String will convert it into a String value.

    See: http://www.artima.com/weblogs/viewpost.jsp?thread=7590 for a further explanation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My primary language is PHP, but I have done some (not very much) programming
What does it offer to an object oriented language such as C++? or is
I have a PHP translation tool that sets $_Session['language'] as en, it, es, fr,
I'm keen to drink some modern dynamic language koolaid, so I've believed all the
We're looking for someone to help us enhance & maintain our high-quality, php-based prototype
I notice on bad quality websites with ads a piece of the site will
Are there any production quality JSF 2 implementations yet? If so what are they?
I'm interested in knowing what high quality and useful add-ons or utilities are available
I'm working with a good quality usb camera at the moment. The video quality
I am looking for a good quality and reliable mapping solution for South Africa.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.