Top "Typechecking" questions

A typechecker enforces that expressions in a given programming language are well typed -- i.e. conform to the rules of a particular type system.

OCaml: Type Checking Objects

If I have an object, how can I determine its type? (Is there an OCaml equivalent to Java's instanceof operator?)

object ocaml instanceof typechecking
Enforce strong type checking in C (type strictness for typedefs)

Is there a way to enforce explicit cast for typedefs of the same type? I've to deal with utf8 and …

c typedef strong-typing typechecking
Is it Pythonic to check function argument types?

I know, type checking function arguments is generally frowned upon in Python, but I think I've come up with a …

python typechecking
isinstance(foo,bar) vs type(foo) is bar

A question of semantics, really. Up until recently, if I had to do any typechecking on a structure, I would …

python typechecking
How to check if the template parameter of the function has a certain type?

Say I have a function with template type T and two other classes A and B. template <typename T&…

c++ templates typechecking
Verilog linting tools?

What are some good linting tools for verilog? I'd prefer one that can be configured to either handle or ignore …

verilog lint typechecking hdl
pycharm type checker expected type dict, got 'None' instead

In this snippet: from typing import Dict, Optional class T: def __init__(self): self.bla = {} def t(self) -> …

python pycharm typechecking
Should I check the types of constructor arguments (and at other places too)?

Python discourages checking the types. But in many cases this may be useful: Checking constructor arguments. e.g. checking foe …

python typechecking
Self-reference or forward-reference of type annotations in Python

I'm trying to figure out how self-reference of types work with python3's type annotations - the docs don't specify …

python python-3.x python-3.5 typechecking typing
Type checking: an iterable type that is not a string

To explain better, consider this simple type checker function: from collections import Iterable def typecheck(obj): return not isinstance(obj, …

python python-3.x typechecking