• 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

pkill

global-scope

boto3

isomorphic-fetch-api

optimizer-statistics

left-to-right

discord-rpc

dart-2

prettier

row-number

angular-aot

google-play-billing

android-2.1-eclair

twinx

xquery-3.0

casbin

distcp

video-on-demand

copybook

spacebars

textflow

vscode-plugin

application-design

mxnet

rollupjs

segments

nano-server

idea-gradle-plugin

c5.0

covering-index

About Contact Privacy policy Terms and conditions