The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Chris Stringer (1) [Avatar] Offline
#1
It looks like there's an error on the last line of listing 2.18.

In the ternary conditional operator expression - specialMix isn't force-unwrapped.
Craig Grummitt (50) [Avatar] Offline
#2
You're right! That exclamation mark seems to have been lost in the editing process, thanks for pointing it out! It sounds as though you've worked out what it should be, but for anyone else reading this before it gets fixed, the line of code should read:

let prepareMartini = specialMix != nil ? specialMix! : defaultMix