Top "Static-typing" questions

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

What is the purpose of type ascriptions in Scala?

There's not much info in the spec on what type ascription is, and there certainly isn't anything in there about …

scala static-typing ascription
Is there support for static typing in ECMAScript 6 or 7?

Is there any support for static typing in ECMAScript 6? How about ECMAScript 7?

javascript ecmascript-6 static-typing ecmascript-7
Why is C# statically typed?

I am a PHP web programmer who is trying to learn C#. I would like to know why C# requires …

c# static-typing
Are there any statically typed, embeddable scripting languages?

I am wondering if there are any statically typed, embeddable scripting languages. Python, JavaScript, etc. are great languages, but they …

language-agnostic embedded-language static-typing
Tools for static type checking in Python

I'm working with a large existing Python codebase and would like to start adding in type annotations so I can …

python static-typing
Haskell type signature with multiple class constraints

How can I have multiple class constraints, so if A is an Eq and B is a Num, I could …

haskell types static-typing type-signature
Is it possible to specify an anonymous function's return type, in Scala?

I know you can create an anonymous function, and have the compiler infer its return type: val x = () => { System.…

scala anonymous-function static-typing
Statically typed Lua

I am looking for a Lua front-end compiler that is type-checked at compile time, but outputs standard Lua 5.1 byte-code (that …

compiler-construction lua static-typing
Is there a compiled* programming language with dynamic, maybe even weak typing?

I wondered if there is a programming language which compiles to machine code/binary (not bytecode then executed by a …

programming-languages typing static-typing dynamic-typing
Are there any statically-typed functional languages?

I'm coming from a statically-typed background and investigating functional programming, but I'm not entirely excited about dynamic typing. I'm curious …

types programming-languages functional-programming static-typing