Top "Optional" questions

An immutable type that may contain a value or reference.

Best alternative to std::optional to return an optional value from a method? (using C++98/C++11/C++14)

Obviously, std::optional is the best choice to return an optional value from a function if one uses C++17 or …

c++ c++11 return-value optional
typescript optional property with a getter

This is a simplified example: class PersonParms{ name:string; lastName:string; age?:number; get fullName(){return this.name + " "+this.lastName;} } …

typescript optional getter object-literal
Java 8 Optional and flatMap - what is wrong?

Some piece of code: public class Player { Team team; String name; } public class Team { List<Player> players; } public …

java map java-8 optional flatmap
Accessing boolValue in a NSNumber var with optional chaining (in Swift)

I have a NSManagedObject subclass with an optional instance variable @NSManaged var condition: NSNumber? // This refers to a optional boolean …

swift nsnumber optional