[Proposal]: Conditional Assign #7063
-
a something we can use like ??= for another operations like => { ==,>,<,>=,<=, and etc) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It's not at all clear to me what is the proposed syntax supposed to mean. Which is why I think it's probably not a good idea to add it to the language. |
Beta Was this translation helpful? Give feedback.
-
I think that would be the wrong thing to do here. It gets referred to as bike-shedding. The precise syntax often will come last after much discussion, experimentation with the functionality etc. What's important is that you clearly explain what it is that you are proposing. Show some examples of existing code, explain why it's a problem and then show the same functionality with some new example syntax. Do not waste time on trying to make that new syntax into anything fancy though. |
Beta Was this translation helpful? Give feedback.
I think that would be the wrong thing to do here. It gets referred to as bike-shedding. The precise syntax often will come last after much discussion, experimentation with the functionality etc.
What's important is that you clearly explain what it is that you are proposing. Show some examples of existing code, explain why it's a problem and then show the same functionality with some new example syntax. Do not waste time on trying to make that new syntax into anything fancy though.