Top "Type-inference" questions

Type inference is the process of inferring types for programs automatically, using rules defined by a type system.

How much is too much with C++11 auto keyword?

I've been using the new auto keyword available in the C++11 standard for complicated templated types which is what I …

c++ types c++11 type-inference auto
Not able to "findViewById" in Kotlin. Getting error "Type inference failed"

I am getting the following error when I try to find a RecycleView by id. Error:- Type inference failed: …

android android-layout kotlin type-inference
C# Type suffix for decimal

I don't know what the correct wording is for what I am trying to achieve so it may already be …

c# types double decimal type-inference
Why does this Haskell code produce the "infinite type" error?

I am new to Haskell and facing a "cannot construct infinite type" error that I cannot make sense of. In …

haskell types type-inference
Go fails to infer type in assignment: "non-name on left side of :="

This snippet works as expected play.golang.org/p/VuCl-OKMav i := 10 next := 11 prev, i := i, next However this nearly identical …

go type-inference
How can I reliably determine the type of a variable that is declared using var at design time?

I'm working on a completion (intellisense) facility for C# in emacs. The idea is, if a user types a fragment, …

c# reflection appdomain type-inference
Is there an equivalent to the C# "var" keyword in C++/CLI?

In C#, I like the var keyword for situations like this: var myList = new List<MyType>(); Is there …

c# .net c++-cli type-inference
Recursive value xxx needs type in Scala

I am confused about why Scala is complaining about this code. I have two classes which depend on each other. …

scala type-inference
What's the difference between dtype and converters in pandas.read_csv?

pandas function read_csv() reads a .csv file. Its documentation is here According to documentation, we know: dtype : Type name …

python pandas types converter type-inference
Why doesn't C# infer my generic types?

I'm having lots of Funcy fun (fun intended) with generic methods. In most cases C# type inference is smart enough …

c# .net c#-4.0 type-inference