Questions tagged [static-language]
11 questions
10
votes
4 answers
OOP and Dynamic Typing (not Static vs Dynamic)
What OOP principles, if any, don't apply or apply differently in a dynamically typed environment as opposed to a statically-typed environment (for example Ruby vs C#)? This is not a call for a Static vs Dynamic debate, but rather I'd like to see…

Dave Sims
- 5,060
- 3
- 24
- 26
8
votes
2 answers
Is Clojure Uni-Typed?
Robert Harper has written a fascinating piece called "Dynamic languages are static languages". In it he writes:
And this is precisely what is wrong with dynamically typed languages: rather than affording the freedom to ignore types, they instead…

hawkeye
- 34,745
- 30
- 150
- 304
5
votes
4 answers
can anybody explain C C++ Java regarding dynamic or static language
can anybody explain C C++ Java regarding dynamic typed or static typed language.
I read somewhere that C C++ and Java are all static language. But I recall there are other opinions about these. Very confused.
Thanks!

Josh Morrison
- 7,488
- 25
- 67
- 86
3
votes
5 answers
Dynamic languages Vs Static languages (can this two be together in the same place)
programming languages are grouped it 2 main classes "Dynamic" & "Static".
- Is this always the case a programming language is in one of them and not in both, I mean can a language be dynamic and static at the same time ?

Ayoub M.
- 4,690
- 10
- 42
- 52
2
votes
1 answer
multi bounded methods in a statically typed language?
Sorry the title is kinda wrong. Because I was thinking about method binding, when this question came up.
Example with some pseudo code..
interface A
interface B
val z: A & B = [object of a class that implements A and B];
Is their any statically…

hotzenplotz
- 43
- 4
2
votes
9 answers
Can statically compiled languages replace scripting language?
Assuming you can get a dynamic interpreter; can statically compiled languages replace scripting language? I never quite understood why anyone would use a scripting language? I am talking about on PC, not a limited system which needs a simplistic…
user34537
1
vote
1 answer
Profiling static vs dynamic typing in Hack/PHP
I'm working in Hack, and am trying to figure out "does code run faster if it's typed", as the language will support both dynamic and static typing depending on the header on the file.
What tests would you run to see the efficiency differences…

Dean J
- 39,360
- 16
- 67
- 93
1
vote
2 answers
Under what assumption does Re-Sharper shows me "Use implicitly typed local variable" message?
In my understanding C# started as a static language and with some enhancements in the .NET framework and started supporting the dynamic nature of the language.
I think the "var" keyword in c# is very powerful when it comes to loading the DLLs at…

Lost
- 12,007
- 32
- 121
- 193
0
votes
1 answer
In general, static languages are type checked at compile time. Is typescript also type checked at compile time?
We create a TS file in vscode and report an error to us after deliberately writing a wrong type. Is the type checked at this time? We haven't done anything yet.
So when did typescript start type checking?

Dasheng
- 67
- 6
0
votes
2 answers
Styleguide when coding in a static language
I am currently a junior engineer and keen on learning best practices and expanding my experience. My question concerns any static programming language such as Java, C#, C++ etc.
When I am writing code, I like making it easy to read. In my opinion,…

Adrien Cadet
- 1,311
- 2
- 15
- 21
0
votes
1 answer
Separating vs merging objects made from database tables in static languages
Consider that in the database you have a table called users and a table called wallets. Among other things a user has 0, 1 or more wallets. The relation is one to many, meaning that the wallet has a foreign key pointing at the user.
Now the question…

Stanimirovv
- 3,064
- 8
- 32
- 56