Dave Merrill
05/02/2022, 6:30 PMmjclemente
05/02/2022, 6:41 PMmjclemente
05/02/2022, 6:44 PMDavid Buck
05/02/2022, 7:04 PMfoo.variables.bar ?: ""
(for some reason, that causes CF to throw an exception, whereas foo.variables?.bar ?: ""
doesn't). EDIT: looks like this bug was fixed in CF 2018+, so elvis is all you need.Adam Cameron
Adam Cameron
Dave Merrill
05/03/2022, 1:52 PMAdam Cameron
Dave Merrill
05/03/2022, 2:12 PMAdam Cameron
other than defaulting possible-missing fields so I don't have this question, I'm not sure it should.That's largely all I'd expect a RequestContext object to implement as far as behaviour goes. Just a uniform interface to that one slightly-not-dumb behaviour. You then have the additional benefit of having that uniform interface to pass around the place. A method receiving a RequestContext documents itself, plus it knows how to use the interface provided. And won't be tempted to try anything dumb. Anyway, this is waaaay off topic now 😉