Top "Void" questions

An incomplete type used as syntactic place-holder for the return type of a method/function when no value is returned.

Python void return type annotation

In python 3.x, it is common to use return type annotation of a function, such as: def foo() -> …

python annotations void type-hinting
Should I use Unit or leave out the return type for my scala method?

I am not sure what the difference is between specifying Unit as the return type of my scala method or …

scala void return-type
How can I return a default value for an attribute?

I have an object myobject, which might return None. If it returns None, it won't return an attribute id: a = …

python reflection attributes default void
What's the difference between static inline void and void?

I'm working in the C language and modifying code previously written by someone else. I'm struggling with a few things …

c static inline void
What is the difference between java.lang.Void and void?

In API "The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the …

java void
What does Void return type mean in Kotlin

I tried to create function without returning value in Kotlin. And I wrote a function like in Java but with …

java kotlin void return-type
what does it mean to convert int to void* or vice versa?

What does it mean to convert an integer value to a void* or viceversa from a memory point of view? …

c void
Why does this Java 8 lambda fail to compile?

The following Java code fails to compile: @FunctionalInterface private interface BiConsumer<A, B> { void accept(A a, B …

java lambda compiler-errors java-8 void
Why cast an unused function parameter value to void?

In some C project, I have seen this code: static void *l_alloc (void *ud, void *ptr, size_t osize, …

c casting void