An immutable type that may contain a value or reference.
The idiom for dealing with optionals in Swift seems excessively verbose, if all you want to do is provide a …
swift optionalI have the following Stream: Stream<T> stream = stream(); T result = stream.filter(t -> { double x = …
java java-8 java-stream optionalI have a form like this: class My_Form(ModelForm): class Meta: model = My_Class fields = ('first_name', 'last_name' , …
django django-forms optional django-modelsWhen I want to check if an Optional Bool is true, doing this doesn't work: var boolean : Bool? = false if …
swift boolean optionalI'm unwrapping two values from a dictionary and before using them I have to cast them and test for the …
if-statement swift optionalSuppose I have a map of given name, surname pairs and I want to find the given name of the …
java lambda java-8 java-stream optionalWhy would you create a "Implicitly Unwrapped Optional" vs creating just a regular variable or constant? If you know that …
swift design-patterns optional@RequestMapping(value = "/contact.html", method = RequestMethod.POST) public final ModelAndView contact( @RequestParam(value = "name", required = false) Optional<String> …
spring spring-mvc guava nullable optional