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 7045115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:29:26+00:00 2026-05-28T02:29:26+00:00

I am wanting to clarify if it is not possible to declare types in

  • 0

I am wanting to clarify if it is not possible to declare types in Ruby or is it just not necessary? If someone wanted to declare datatypes would it be possible.

Update: My point in asking is to understand if providing a static type for variables that won’t change type will provide a performance increase, in theory.

  • 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-05-28T02:29:26+00:00Added an answer on May 28, 2026 at 2:29 am

    Some languages as C or Java use “strong” or “static” variable typing. Ruby is a “dynamically typed” language aka “duck typing”, which means that variable dynamically changes its own type when type of assigned data has changed.

    So, you can’t declare variable to some strict type, it will always be dynamic.

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

Sidebar

Related Questions

Wanting to truncate addresses for clarity. Not looking for improved code, just why the
I am wanting to find out if it is possible to easily debug a
I'm wanting to update a record in my database which has two values, one
Wanting to add a thumbs up/down rating system to my Tumblr Page, just like
Wanting to integrate aspects of SharePoint into an existing website - rather than integrating
I am wanting to compress results from QUERYS of the database before adding them
I am wanting to generate and store a CRC (or similar) value for a
I'm wanting to get the filepath ie /sites/default/files/myfile.pdf for my file uploads. I'm using
I've been wanting to improve my regex skills for quite some time now and
I often find myself wanting to debug CSS layout issues that involve DOM changes

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.