I disagree with the suggestion. IF statement indicates a branching of execution path. It should be made to stand out so that when people are skimming through the code can immediately pick up these alternate execution paths. Changing it to a mere "?" will reduce its visibility. You have to read harder to pick up these alternate paths.
On Wednesday, April 24, 2019 at 8:05:31 AM UTC+7, lgo...@gmail.com wrote: > > It sure would be nice if Go syntax allowed programmers to replace > > if ( test) { > ...do sonething > } else { > ..do something else > } > > with > > ? (test) { > //...do something > } > { > //..do something else > } > > The ? operator can be anything the Go language team considers appropriate > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.