What does the comma operator do?

Comma operator is applied and the value 5 is used to determine the conditional’s true/false. It will execute blah() and get something back (presumably), then the comma operator is employed and 5 will be the only thing that is used to determine the true/false value for the expression. Note that the , operator could be … Read more

How >> operator defines task dependencies in Airflow?

Airflow represents workflows as directed acyclic graphs. A workflow is any number of tasks that have to be executed, either in parallel or sequentially. The “>>” is Airflow syntax for setting a task downstream of another. Diving into the incubator-airflow project repo, models.py in the airflow directory defines the behavior of much of the high … Read more

What does the question mark mean in GSP/Grails?

It’s the “Safe Navigation Operator”, which is a Groovy feature that concisely avoids null pointer exceptions. See http://docs.groovy-lang.org/latest/html/documentation/index.html#_safe_navigation_operator In this case, if phoneInstance is null, then it doesn’t try to get the name property and cause a NPE – it just sets the value of the field tag to null.