Created
July 5, 2017 19:07
-
-
Save daniel-white/8192a95b7019e61d226f1eb3f4b37ac7 to your computer and use it in GitHub Desktop.
Which style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Dot operator | |
// DAW: I normally do this | |
obj | |
.SomeReallyLongThing1() | |
.SomeReallyLongThing2(); | |
// Null conditional operator | |
// DAW: should the question mark be with the dot or the previous line | |
// #1 | |
obj? | |
.SomeReallyLongThing1()? | |
.SomeReallyLongThing2(); | |
// #2 | |
obj | |
?.SomeReallyLongThing1() | |
?.SomeReallyLongThing2(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment