5 ms·
I think the only remaining purpose for trigraphs is when you are at the very end of a C interview, and your amazing candidate has answered every question perfec
by ryandrake 4y ago
I think the only remaining purpose for trigraphs is when you are at the very end of a C interview, and your amazing candidate has answered every question perfectly, and you just have to find something they might not know about--only then do you reach for the trigraphs.
- thrwyoilarticle 4y agoGasp! You mean they've heard the volatile question before?
- sidewndr46 4y agoThe register keyword is far more interesting.
- Thorrez 4y agoHow about the restrict keyword.
- WithinReason 4y agoWow, I know all these. I only recently discovered bit addressing in C though.
- mpalczewski 4y agoWhy would you do this? Some weird insecurity?
- sirmoveon 4y agoSalary negotiating leverage? The worst they feel the more likely they accept to be lowballed
- ryandrake 4y agoHaha no! When a candidate is that awesome, I sometimes get morbidly curious about whether there is actually an end to that depth of knowledge or if it just goes on forever. At that point, they already have the "HIRE" classification and I'm pretty much in awe! I love it when a candidate blows through my easy, medium and hard questions and leaves me scrambling.
- Someone 4y agoNo, that’s the next-to-last question. If they know that, you ask about digraphs <: and :> are [ and ] <% and %> are { and } %: is # (since C99, and expanded a bit later than trigraphs) ‘Unfortunately’, none of the characters used here can be coded using trigraphs, so you can’t use trigraphs to generate digraphs in source.
- gpderetta 4y agoA very long time ago I had to write some throwaway code on a laptop with an European keyboard with {} in very inconvenient positions (requiring pressing the alt key). I resorted to digraphs and I don't regret it.