Style guide: return empty string with String
vs. null with String?
#5737
Labels
a.language
Relates to the Dart language tour
e2-days
Can complete in < 5 days of normal, not dedicated, work
p3-low
Valid but not urgent concern. Resolve when possible. Encourage upvote to surface.
st.triage.ltw
Indicates Lead Tech Writer has triaged
(From a thread in Dart Discuss chat) Do we need a style guide entry (or maybe a lint?) about "having a return type of
String
, and returning empty string, vs having a return type ofString?
, and returning null?" (Or is there one already? I didn't find anything)The text was updated successfully, but these errors were encountered: