• Categories
    • python
    • javascript
    • java
    • reactjs
    • c#
    • android
    • html
    • node.js
    • php
    • r
    • css
    • flutter
    • c++
    • pandas
    • sql
    • python-3.x
    • typescript
    • angular
    • django
    • mysql
    • ios
    • json
    • swift
    All Categories

Category "default-parameters"

Is there a way to use the default value on a non-optional parameter when null is passed?

For example, if I have the following data class: data class Data( val name: String = "", val number: Long = 0 ) And functions that can return null:

  • « Previous
  • Next »

Other Categories

nwb

topology

gml-geographic-markup-lan

internet-explorer-11

image-masking

money-rails

azure-service-fabric

amqp

pyspark-schema

opencv-solvepnp

xcode12.3

gridview.builder

firebird-3.0

gift

mariadb-connector-c

globalize

dynamic-compilation

ioslides

chart.js3

polish-notation

tasklist

sparkfun

list

linq-to-excel

fluid-framework

julia-jump

file-permissions

netbeans-9

indicator

hkdf

About Contact Privacy policy Terms and conditions