question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can we use empty values instead of null?

See original GitHub issue

is it possible to make nulls to empty values for each cases. for example, i may want to write a string which’s null word;

test: null
test: 'null'
test: "null"

like that, or i may want to write a section which’s empty;

test: {}

like that, or for maybe a empty list;

test: []

i think this makes sense more than the writing null keyword. what you think about that? also i think files shouldn’t have the null values which are absolutely bullshit.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
amihaiemilcommented, Jun 23, 2020

@portlek I opened #368 for implementing flow representation.

0reactions
portlekcommented, Jun 23, 2020

Thanks a lot, it’ll good to see this feature in the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 Clever Ways to Return Empty Value Instead of Null From a ...
It is best practice to return empty values rather than null ones. Especially when you return a collection, enumerable, or an object, you...
Read more >
When to use NULL and when to use an empty string?
It depends on the domain you are working on. NULL means absence of value (i.e. there is no ...
Read more >
Use of empty strings instead of null - a good practice?
That depends on your use case. null is a special value and has a special semantic. You may default all to empty string...
Read more >
How to replace NULL with Empty String in SQL Server ...
There are two ways to replace NULL with blank values in SQL Server, function ISNULL(), and COALESCE(). Both functions replace the value you...
Read more >
On Null or Why Empty Strings are not Same as Null
For strings things get a bit more complicated. A SQL NVARCHAR() NULL can be either empty or null . If you allow the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found