PaesslerAG / gval

Expression evaluation in golang
BSD 3-Clause "New" or "Revised" License
713 stars 83 forks source link

feat request: null safe operator #77

Open rr-nick-tan opened 2 years ago

rr-nick-tan commented 2 years ago

first of all, thanks for the nice project solves my problem a lot.

here is one feature request after using this module in more scenarios of the projects, i'd like to have null safe operator it's common that my struct is composite of primary and collect data, especially a map in the struct, so i'd like to access the field in the null safe way rather than error out Ex. https://www.danvega.dev/blog/2013/08/20/groovys-null-safe-operator/